Created
May 18, 2014 18:47
-
-
Save c4milo/f6130f1b6873076ae839 to your computer and use it in GitHub Desktop.
Upstart script for Ejabberd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu upstart file at /etc/init/ejabberd.conf | |
respawn | |
respawn limit 20 5 | |
start on runlevel [2345] | |
stop on runlevel [06] | |
script | |
exec start-stop-daemon --start --name ejabberd --user ejabberd --chuid ejabberd --exec /usr/local/sbin/ejabberdctl -- start | |
end script | |
pre-stop script | |
exec start-stop-daemon --stop --oknodo --signal QUIT --user ejabberd --chuid ejabberd --exec /usr/lib/erlang/erts-5.10.1/bin/beam.smp | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to make this work with Upstart, an additional change is to modify ejabberdctl start function from this:
to this: