Fix serial server init file

master
Timothy Pearson 11 years ago
parent 737ddb96ff
commit e32d9c1767

@ -1,18 +1,18 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: ulab-fpgaserver
# Provides: ulab-serialserver
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: console-screen kbd acpid hal krb5-kdc nis
# Should-Stop: console-screen kbd
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: uLab FPGA Server
# Description: uLab FPGA Server
# Short-Description: uLab Serial Server
# Description: uLab Serial Server
### END INIT INFO
# /etc/init.d/ulab-fpgaserver: start or stop the uLab FPGA Server
# /etc/init.d/ulab-serialserver: start or stop the uLab Serial Server
#
# description: uLab FPGA Server
# description: uLab Serial Server
#
. /lib/lsb/init-functions
@ -20,11 +20,11 @@
set -e
PATH=/opt/trinity/bin:/usr/bin:/sbin:/usr/sbin:/bin
DAEMON=/opt/trinity/bin/ulab_fpgaserver
PIDFILE=/var/run/ulab_fpgaserver.pid
UPGRADEFILE=/var/run/ulab_fpgaserver.upgrade
DAEMON=/opt/trinity/bin/ulab_serialserver
PIDFILE=/var/run/ulab_serialserver.pid
UPGRADEFILE=/var/run/ulab_serialserver.upgrade
DESC="uLab FPGA Server"
DESC="uLab Serial Server"
# If we upgraded the daemon, we can't use the --exec argument to
# start-stop-daemon since the inode will have changed. The risk here is that
@ -60,13 +60,13 @@ case "$1" in
;;
restart)
/etc/init.d/ulab-fpgaserver stop
/etc/init.d/ulab-serialserver stop
if [ -f $PIDFILE ]; then
if stillrunning; then
exit 1
fi
fi
/etc/init.d/ulab-fpgaserver start
/etc/init.d/ulab-serialserver start
;;
reload)
@ -80,7 +80,7 @@ case "$1" in
;;
force-reload)
/etc/init.d/ulab-fpgaserver reload
/etc/init.d/ulab-serialserver reload
;;
stop)
@ -100,7 +100,7 @@ case "$1" in
;;
*)
echo "Usage: /etc/init.d/ulab-fpgaserver {start|stop|restart|reload|force-reload}"
echo "Usage: /etc/init.d/ulab-serialserver {start|stop|restart|reload|force-reload}"
exit 1
;;
esac

Loading…
Cancel
Save