5
# Required-Start: $local_fs $remote_fs $network $time
6
# Required-Stop: $local_fs $remote_fs $network $time
7
# Should-Start: $syslog
9
# Default-Start: 2 3 4 5
11
# Short-Description: Gfarm filesystem metaserver
14
PATH=/sbin:/bin:/usr/sbin:/usr/bin
15
DESC="Gfarm filesystem metaserver"
18
DAEMON=/usr/sbin/$NAME
19
PIDFILE=/var/run/$FILE.pid
20
CONFIG=/etc/gfarm2.conf
23
test -f $DAEMON || exit 0
24
test -f $CONFIG || exit 0
26
. /lib/lsb/init-functions
30
log_daemon_msg "Starting $DESC: $NAME"
31
start-stop-daemon --quiet --start \
32
--pidfile $PIDFILE --exec $DAEMON -- -P $PIDFILE $OPTIONS
35
1) log_progress_msg "already started"
41
log_daemon_msg "Stopping $DESC" "$NAME"
42
start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $DAEMON
45
1) log_progress_msg "already stopped"
55
status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
58
echo "Usage: /etc/init.d/$SCRIPTNAME {start|stop|restart|force-reload|status}" >&2