3 # jserv jserv short service description
7 # description: jserv long service description
11 # Source function library
12 . /etc/rc.d/init.d/functions
15 . /etc/sysconfig/network
17 # Get service config - may override defaults
18 [ -f /etc/sysconfig/jserv ] && . /etc/sysconfig/jserv
20 # Check that networking is up.
21 if is_yes "${NETWORKING}"; then
22 if [ ! -f /var/lock/subsys/network ]; then
23 msg_network_down jserv
30 # See how we were called.
33 # Check if the service is already running?
34 if [ ! -f /var/lock/subsys/jserv ]; then
36 daemon --user jserv jserv
38 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/jserv
40 msg_already_running jserv
44 if [ -f /var/lock/subsys/jserv ]; then
48 rm -f /var/lock/subsys/jserv
59 if [ -f /var/lock/subsys/jserv ]; then
64 msg_not_running jserv >&2
69 # if program allows reloading without stopping
82 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
88 # This must be last line !
89 # vi:syntax=sh:tw=78:ts=4:sw=4