4
# Required-Start: $local_fs $remote_fs $syslog
5
# Required-Stop: $local_fs $remote_fs $syslog
6
# Default-Start: 2 3 4 5
8
# Short-Description: memcachedb - Persistent cache daemon
9
# Description: memcachedb - Persistent cache daemon
13
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
14
DAEMON=/usr/bin/memcachedb
15
DAEMONBOOTSTRAP=/usr/share/memcachedb/start-memcachedb
18
PIDFILE=/var/run/$NAME.pid
20
test -x $DAEMON || exit 0
21
test -x $DAEMONBOOTSTRAP || exit 0
23
. /lib/lsb/init-functions
29
echo -n "Starting $DESC: "
30
start-stop-daemon --start --quiet --exec $DAEMONBOOTSTRAP
34
echo -n "Stopping $DESC: "
35
start-stop-daemon --stop --retry 10 --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON
42
# If the "reload" option is implemented, move the "force-reload"
43
# option to the "reload" entry above. If not, "force-reload" is
44
# just the same as "restart".
46
echo -n "Restarting $DESC: "
47
start-stop-daemon --stop --retry 10 --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON
49
start-stop-daemon --start --quiet --exec $DAEMONBOOTSTRAP
53
status_of_proc /usr/bin/$NAME $NAME
57
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
58
echo "Usage: $N {start|stop|restart|force-reload|status}" >&2