systemd-bbbs/initd/bbbsd2

32 lines
558 B
Plaintext
Raw Permalink Normal View History

#! /bin/sh
### BEGIN INIT INFO
# Provides: bbbsd2
# Should-Start: console-screen dbus network-manager
# Required-Start: $all
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Outgoing connections BBBS Daemon
### END INIT INFO
#
set -e
. /lib/lsb/init-functions
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin:/opt/bbbs
SCRIPT="/opt/bash/bbbsd2.sh"
PROGRAMNAME="bbbs"
case "$1" in
start)
su - root -c"
nohup /opt/bash/bbbsd2.sh &"
;;
stop)
skill $PROGRAMNAME
;;
esac
exit 0