Limnoria / Limnoria-doc

The Limnoria doc source.
https://limnoria.readthedocs.io/
6 stars 11 forks source link

Add init script to the doc #3

Open progval opened 11 years ago

progval commented 11 years ago

It may be useful to have this template: http://www.schwer.us/journal/2005/04/17/supybot-init-script-for-debian/

Mikaela commented 10 years ago

404 error.

What is wrong with cron and supybot-botchk?

progval commented 10 years ago

https://web.archive.org/web/20120928155016/http://www.schwer.us/journal/2005/04/17/supybot-init-script-for-debian

Mikaela commented 10 years ago

Copying here in case that goes down too which seems unlikely (see next comment).

#! /bin/sh
#
# supybot init script
#
#
# Cobbled together from the blootbot init script.
#

PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/supybot
NAME=supybot
DESC=supybot

test -f $DAEMON || exit 0

set -e

case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile /var/run/supybot/$NAME.pid \
--chuid supybot --exec $DAEMON -- --daemon /etc/supybot/nibler.conf
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --pidfile /var/run/supybot/$NAME.pid \
--oknodo --exec /usr/bin/python
echo "$NAME."
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}" >&2
exit 1
;;
esac

exit 0
Mikaela commented 9 years ago

Releated to previous comment: http://jmtd.net/log/archive.org_not_backup/