systemd-bbbs/initd/bbbsd3

32 lines
550 B
Bash
Executable File

#! /bin/sh
### BEGIN INIT INFO
# Provides: bbbsd3
# 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 Ingoing 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/bbbsd3.sh"
PROGRAMNAME="bbbsd"
case "$1" in
start)
su - root -c"
/opt/bash/bbbsd3.sh"
;;
stop)
skill $PROGRAMNAME
;;
esac
exit 0