3
# Works for Ubuntu. Check before using on other distributions
6
# Provides: usrmgt-server
7
# Required-Start: $syslog $networking $urandom
8
# Required-Stop: $syslog
9
# Default-Start: 2 3 4 5
11
# Short-Description: IVLE user management server
12
# Description: Daemon connecting to the IVLE user management database.
15
PATH=/sbin:/bin:/usr/sbin:/usr/bin
16
DESC="IVLE user management server"
18
DAEMON=/usr/local/share/ivle/services/$NAME
19
SCRIPTNAME=/etc/init.d/usrmgt-server
21
test -f $DAEMON || exit 0
23
. /lib/lsb/init-functions
27
log_daemon_msg "Starting $DESC" "$NAME"
32
log_daemon_msg "Stopping $DESC" "$NAME"
41
status_of_proc $DAEMON usrmgt-server && exit 0 || exit $?
44
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}"