summaryrefslogtreecommitdiff
path: root/pcr/spectrum/spectrum@.service
blob: 8e13385435de3d7c25361cd773434b51d3443b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Spectrum XMPP transport for %i
After=network.service prosody.service ejabberd.service

[Service]
Type=forking
PIDFile=/run/spectrum/%i.pid
ExecStart=/usr/bin/spectrumctl --su=spectrum -c /etc/spectrum/%i.cfg start
ExecStop=/usr/binspectrumctl --su=spectrum -c /etc/spectrum/%i.cfg stop
ExecReload=/usr/binspectrumctl --su=spectrum -c /etc/spectrum/%i.cfg reload

[Install]
WantedBy=multi-user.target