git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/bongo@1107 6952d904-891a-0410-993b-d76249ca496b
32 lines
795 B
Plaintext
32 lines
795 B
Plaintext
#!/sbin/runscript
|
|
|
|
depend() {
|
|
need net
|
|
use logger dns antivirus
|
|
after apache2 lighttpd spamd
|
|
provide mta
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting bongo"
|
|
start-stop-daemon --start --quiet \
|
|
--exec /usr/sbin/bongo-manager -- -d &> /dev/null
|
|
if [[ ${BONGO_WEB_MODE} == 'standalone' ]] ; then
|
|
start-stop-daemon --start --quiet --background --make-pidfile \
|
|
--pidfile /var/run/bongo/bongo-standalone.pid \
|
|
--exec /usr/bin/python \
|
|
--startas /usr/sbin/bongo-standalone &> /dev/null
|
|
fi
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping bongo"
|
|
if [[ ${BONGO_WEB_MODE} == 'standalone' ]] ; then
|
|
start-stop-daemon --stop \
|
|
--pidfile /var/run/bongo/bongo-standalone.pid
|
|
fi
|
|
start-stop-daemon --stop --name bongo-manager &> /dev/null
|
|
eend $?
|
|
}
|