Created
August 4, 2014 01:55
-
-
Save daurnimator/1f9066bc32ad293b005b to your computer and use it in GitHub Desktop.
systemd unit for prosody; assumes mod_systemd
This file contains 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
[Unit] | |
Description=XMPP (Jabber) Server | |
After=network.target | |
[Service] | |
User=prosody | |
ProtectSystem=full | |
ProtectHome=true | |
Type=notify | |
ExecStart=/usr/bin/prosody | |
ExecReload=/usr/bin/kill -HUP $MAINPID | |
Restart=on-failure | |
WatchdogSec=5s | |
RuntimeDirectory=prosody | |
RuntimeDirectoryMode=0755 | |
PIDFile=/run/prosody/prosody.pid | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could drop PIDfile from, and use sd_notify(MAINPID=xxx) from inside Prosody. This would make unit file 3 lines shorted (you would be able to drop Runtime*= too)