Skip to content

Instantly share code, notes, and snippets.

@e0da
Last active December 22, 2015 22:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save e0da/6541608 to your computer and use it in GitHub Desktop.
Save e0da/6541608 to your computer and use it in GitHub Desktop.
# cat /etc/supervisor/conf.d/znc.conf
[program:znc]
command = /usr/bin/znc
user = force
directory = /home/force
redirect_stderr = true
# cat /etc/init/znc.conf
description "znc IRC Bouncer"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [!2345]
respawn
respawn limit 10 5
exec /sbin/start-stop-daemon --start --chuid znc --chdir /home/znc --pidfile /var/run/znc.pid --make-pidfile --startas /usr/bin/znc -- --foreground
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment