]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/supybot/templates/default/supybot.init.erb
Convert supybot service to a systemd unit
[chef.git] / cookbooks / supybot / templates / default / supybot.init.erb
diff --git a/cookbooks/supybot/templates/default/supybot.init.erb b/cookbooks/supybot/templates/default/supybot.init.erb
deleted file mode 100644 (file)
index 8fb6d6b..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-# DO NOT EDIT - This file is being maintained by Chef
-
-start() {
-  start-stop-daemon --start --chuid supybot --background --make-pidfile --pidfile /var/run/supybot.pid --exec /usr/bin/supybot -- /etc/supybot/supybot.conf
-}
-
-stop() {
-  start-stop-daemon --stop --retry TERM/15/KILL/30 --pidfile /var/run/supybot.pid
-}
-
-case "$1" in
-  start)
-    start
-    ;;
-  stop)
-    stop
-    ;;
-  restart)
-    stop || exit $?
-    start
-    ;;
-esac