falconindy/systemd-arch-units — Issue #104: add prosody.service
Author: devkral
Created: 2012-01-23 20:02:08+00:00
State: open

Please add a prosody.service file.

Description=Prosody is a lua-based Jabber(XMPP)-server
After=ddclient.service
After=network.target

[Service]
Type=forking
PIDFile=/var/run/prosody/prosody.pid
ExecStartPre=/bin/bash -c "[ -d /var/run/prosody ] || { mkdir -p /var/run/prosody ; chown prosody:prosody /var/run/prosody; }"
ExecStart=/usr/bin/prosodyctl start
ExecStop=/usr/bin/prosodyctl stop

[Install]
WantedBy=multi-user.target