diff options
Diffstat (limited to 'meta-oe/recipes-navigation/gypsy/files/gypsy-initscript')
| -rwxr-xr-x | meta-oe/recipes-navigation/gypsy/files/gypsy-initscript | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/meta-oe/recipes-navigation/gypsy/files/gypsy-initscript b/meta-oe/recipes-navigation/gypsy/files/gypsy-initscript deleted file mode 100755 index c3c94e54f5..0000000000 --- a/meta-oe/recipes-navigation/gypsy/files/gypsy-initscript +++ /dev/null | |||
| @@ -1,61 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | # | ||
| 3 | # based on gypsy-example-initscript in gypsy repository | ||
| 4 | # there are some little modifications to work with OE based distros | ||
| 5 | # []' Felipe Tonello eu@felipetonello.com | ||
| 6 | # | ||
| 7 | |||
| 8 | set -e | ||
| 9 | |||
| 10 | DESC="Gypsy daemon" | ||
| 11 | NAME="gypsy-daemon" | ||
| 12 | DAEMON=/usr/lib/gypsy/$NAME | ||
| 13 | PIDFILE=/var/run/$NAME.pid | ||
| 14 | SCRIPTNAME=/etc/init.d/$NAME | ||
| 15 | USER=root | ||
| 16 | |||
| 17 | # Gracefully exit if the package has been removed. | ||
| 18 | test -x $DAEMON || exit 0 | ||
| 19 | |||
| 20 | # | ||
| 21 | # Function that starts the daemon/service. | ||
| 22 | # | ||
| 23 | d_start() { | ||
| 24 | start-stop-daemon --start --quiet --pidfile $PIDFILE \ | ||
| 25 | --user $USER --exec $DAEMON -- $DAEMON_OPTS | ||
| 26 | } | ||
| 27 | |||
| 28 | # | ||
| 29 | # Function that stops the daemon/service. | ||
| 30 | # | ||
| 31 | d_stop() { | ||
| 32 | start-stop-daemon --stop --quiet --pidfile $PIDFILE \ | ||
| 33 | --oknodo --user $USER --exec $DAEMON | ||
| 34 | } | ||
| 35 | |||
| 36 | |||
| 37 | case "$1" in | ||
| 38 | start) | ||
| 39 | echo -n "Starting $DESC: $NAME" | ||
| 40 | d_start | ||
| 41 | echo "." | ||
| 42 | ;; | ||
| 43 | stop) | ||
| 44 | echo -n "Stopping $DESC: $NAME" | ||
| 45 | d_stop | ||
| 46 | echo "." | ||
| 47 | ;; | ||
| 48 | restart|force-reload) | ||
| 49 | echo -n "Restarting $DESC: $NAME" | ||
| 50 | d_stop | ||
| 51 | sleep 1 | ||
| 52 | d_start | ||
| 53 | echo "." | ||
| 54 | ;; | ||
| 55 | *) | ||
| 56 | echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 | ||
| 57 | exit 1 | ||
| 58 | ;; | ||
| 59 | esac | ||
| 60 | |||
| 61 | exit 0 | ||
