AcePerl
view release on metacpan or search on metacpan
docs/ACEDB.HOWTO view on Meta::CPAN
This is defining a new service named "elegans" which runs on
port 5000. You can change this symbolic name to anything you
like. If you have multiple acedb databases running, give each
one a distinctive name and port number. Avoid using any port
numbers that are already mentioned in the file.
b) Find the file /etc/inetd.conf, and add the following line:
elegans stream tcp wait acedb /usr/local/acedb/bin/sgifaceserver
sgifaceserver /usr/local/acedb/elegans
This is all one line, but has been word-wrapped to fit.
The first field refers to the service named "elegans" that you
defined in /etc/services and is necessary for inetd to associate
the service with the proper port number. Modify as you see fit.
c) Tell inetd to reread its configuration files. Use "ps" to find
the ID of the inetd daemon like this:
# ps -elf | grep inetd
140 S root 121 1 0 68 0 - 475 do_sel May11 ? 00:00:00 /usr/sbin/inetd
and use "kill -HUP" to tell the server to reread inetd.conf
(this must be done as root):
# kill -HUP 140
You should now be able to communicate with the server using saceclient
or ace.pl. If it's not working, look in the following log files for
helpful error messages:
/var/log/messages
~acedb/elegans/database/log.wrm
~acedb/elegans/database/serverlog.wrm
2) Configuring for xinetd:
a) Find the file /etc/services, and add the following line to the
end of the file:
elegans 5000/tcp
This is defining a new service named "elegans" which runs on
port 5000. You can change this symbolic name to anything you
like. If you have multiple acedb databases running, give each
one a distinctive name and port number. Avoid using any port
numbers that are already mentioned in the file.
b) Find the directory /etc/xinetd.d. Create a file named after
the service chosen in (a) containing these contents:
# file: elegans
# default: on
# description: C. elegans acedb database
service elegans
{
disable = no
protocol = tcp
socket_type = stream
flags = REUSE
wait = yes
user = acedb
group = acedb
log_on_success += USERID DURATION
log_on_failure += USERID HOST
server = /usr/local/acedb/bin/saceserver
server_args = /usr/local/acedb/elegans
}
Change the line "service elegans" to be the symbolic name chosen
in (a).
c) Tell xinetd to restart. Use "ps" to find the ID of the xinetd
daemon like this:
# ps -elf | grep xinetd
140 S root 457 1 0 69 0 - 557 do_sel Mar09 ? 00:00:21 xinetd
and use "kill -HUP" to tell the server to reread inetd.conf
(this must be done as root):
# kill -HUP 140
You should now be able to communicate with the server using saceclient
or ace.pl. If it's not working, look in the following log files for
helpful error messages:
/var/log/messages
~acedb/elegans/database/log.wrm
~acedb/elegans/database/serverlog.wrm
Lincoln Stein
May 2003
( run in 0.812 second using v1.01-cache-2.11-cpan-39bf76dae61 )