Skip to content
Snippets Groups Projects
Commit c17fa563 authored by rswindell's avatar rswindell
Browse files

Gentoo Linux startup script submitted by access_d (axisd).

parent fcd82371
No related branches found
No related tags found
No related merge requests found
#!/sbin/runscript
# Gentoo Linux system service run script (init file) for Synchronet
#
# This file normally goes in your /etc/init.d directory
#
# $Id$
########################################
# Synchronet BBS Gentoo startup script #
########################################
# by access_d <axisd> Aug-31-2011
# You can edit these vars to meet your system configuration
SBBSDIR=/sbbs
export SBBSCTRL=$SBBSDIR/ctrl
PROG="$SBBSDIR/exec/sbbs"
PIDFILE="/var/run/sbbs.pid"
opts="${opts} restart"
depend() {
need localmount
after bootmisc
}
start() {
ebegin "Starting SBBS services"
start-stop-daemon --start --exec $PROG d --pidfile $PIDFILE
eend $?
}
stop() {
ebegin "Stopping SBBS services"
start-stop-daemon --stop --exec $PROG --pidfile $PIDFILE
eend $?
}
restart() {
stop
sleep 3
start
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment