forked from Yona-Appletree/LEDscape
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathledscape-server
More file actions
executable file
·34 lines (32 loc) · 823 Bytes
/
ledscape-server
File metadata and controls
executable file
·34 lines (32 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
### BEGIN INIT INFO
# Provides: ledscape-server
# Required-Start: $local_fs $remote_fs
# Required-Stop:
# X-Start-Before:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the LEDscape server
### END INIT INFO
LEDSCAPE=/root/LEDscape/run-ledscape
LEDSCAPE_ARGS=""
PIDFILE=/var/run/ledscape-server.pid
case "$1" in
start)
echo -n "Starting LEDScape Server: ledscape-server"
start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $LEDSCAPE -- $LEDSCAPE_ARGS
echo "."
;;
stop)
echo -n "Stopping LEDScape Server: ledscape-server"
start-stop-daemon --stop --quiet --pidfile $PIDFILE
echo "."
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/init.d/xvfb {start|stop|restart}"
exit 1
esac
exit 0