summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-navigation/gypsy/files/gypsy-initscript
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-navigation/gypsy/files/gypsy-initscript')
-rwxr-xr-xmeta-oe/recipes-navigation/gypsy/files/gypsy-initscript61
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 c3c94e54f..000000000
--- 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
8set -e
9
10DESC="Gypsy daemon"
11NAME="gypsy-daemon"
12DAEMON=/usr/lib/gypsy/$NAME
13PIDFILE=/var/run/$NAME.pid
14SCRIPTNAME=/etc/init.d/$NAME
15USER=root
16
17# Gracefully exit if the package has been removed.
18test -x $DAEMON || exit 0
19
20#
21# Function that starts the daemon/service.
22#
23d_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#
31d_stop() {
32 start-stop-daemon --stop --quiet --pidfile $PIDFILE \
33 --oknodo --user $USER --exec $DAEMON
34}
35
36
37case "$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 ;;
59esac
60
61exit 0