This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Trond Norbye (author)
Wed Nov 04 02:46:29 -0800 2009
| 4b1b1ae7 » | Brad Fitzpatrick | 2003-12-30 | 1 | #! /bin/sh | |
| 2 | # | ||||
| 743fab42 » | dustin | 2009-09-14 | 3 | # skeleton example file to build /etc/init.d/ scripts. | |
| 4 | # This file should be used to construct scripts for /etc/init.d. | ||||
| 4b1b1ae7 » | Brad Fitzpatrick | 2003-12-30 | 5 | # | |
| 743fab42 » | dustin | 2009-09-14 | 6 | # Written by Miquel van Smoorenburg <miquels@cistron.nl>. | |
| 7 | # Modified for Debian | ||||
| 8 | # by Ian Murdock <imurdock@gnu.ai.mit.edu>. | ||||
| 4b1b1ae7 » | Brad Fitzpatrick | 2003-12-30 | 9 | # | |
| 743fab42 » | dustin | 2009-09-14 | 10 | # Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl | |
| 4b1b1ae7 » | Brad Fitzpatrick | 2003-12-30 | 11 | # | |
| 4bfc1ebf » | emonty | 2009-10-28 | 12 | ### BEGIN INIT INFO | |
| 13 | # Provides: memcached | ||||
| 14 | # Required-Start: $syslog | ||||
| 15 | # Required-Stop: $syslog | ||||
| 16 | # Default-Start: 2 3 4 5 | ||||
| 17 | # Default-Stop: 0 1 6 | ||||
| 18 | # Short-Description: Start memcached daemon at boot time | ||||
| 19 | # Description: Enable memcached server | ||||
| 20 | ### END INIT INFO | ||||
| 21 | |||||
| 4b1b1ae7 » | Brad Fitzpatrick | 2003-12-30 | 22 | ||
| 23 | PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | ||||
| 24 | DAEMON=/usr/bin/memcached | ||||
| 25 | DAEMONBOOTSTRAP=/usr/share/memcached/scripts/start-memcached | ||||
| 26 | NAME=memcached | ||||
| 27 | DESC=memcached | ||||
| 28 | PIDFILE=/var/run/$NAME.pid | ||||
| 29 | |||||
| 30 | test -x $DAEMON || exit 0 | ||||
| 31 | test -x $DAEMONBOOTSTRAP || exit 0 | ||||
| 32 | |||||
| 33 | set -e | ||||
| 34 | |||||
| 35 | case "$1" in | ||||
| 743fab42 » | dustin | 2009-09-14 | 36 | start) | |
| 37 | echo -n "Starting $DESC: " | ||||
| 38 | start-stop-daemon --start --quiet --exec $DAEMONBOOTSTRAP | ||||
| 39 | echo "$NAME." | ||||
| 40 | ;; | ||||
| 41 | stop) | ||||
| 42 | echo -n "Stopping $DESC: " | ||||
| 43 | start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON | ||||
| 44 | echo "$NAME." | ||||
| 45 | rm -f $PIDFILE | ||||
| 46 | ;; | ||||
| 4b1b1ae7 » | Brad Fitzpatrick | 2003-12-30 | 47 | ||
| 743fab42 » | dustin | 2009-09-14 | 48 | restart|force-reload) | |
| 49 | # | ||||
| 50 | # If the "reload" option is implemented, move the "force-reload" | ||||
| 51 | # option to the "reload" entry above. If not, "force-reload" is | ||||
| 52 | # just the same as "restart". | ||||
| 53 | # | ||||
| 54 | echo -n "Restarting $DESC: " | ||||
| 55 | start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE | ||||
| 56 | rm -f $PIDFILE | ||||
| 57 | sleep 1 | ||||
| 58 | start-stop-daemon --start --quiet --exec $DAEMONBOOTSTRAP | ||||
| 59 | echo "$NAME." | ||||
| 60 | ;; | ||||
| 61 | *) | ||||
| 62 | N=/etc/init.d/$NAME | ||||
| 63 | # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 | ||||
| 64 | echo "Usage: $N {start|stop|restart|force-reload}" >&2 | ||||
| 65 | exit 1 | ||||
| 66 | ;; | ||||
| 4b1b1ae7 » | Brad Fitzpatrick | 2003-12-30 | 67 | esac | |
| 68 | |||||
| 69 | exit 0 | ||||







