2014-02-24 12:01:59 +00:00
|
|
|
[Unit]
|
2026-01-23 14:41:58 +01:00
|
|
|
Description=Prosody XMPP Server
|
|
|
|
|
Documentation=https://prosody.im/doc
|
|
|
|
|
|
|
|
|
|
Requires=network-online.target
|
|
|
|
|
After=network-online.target network.target mariadb.service mysql.service postgresql.service
|
2014-02-24 12:01:59 +00:00
|
|
|
|
|
|
|
|
[Service]
|
2021-10-21 13:55:15 +00:00
|
|
|
# added automatically, for details please see
|
|
|
|
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
|
|
|
ProtectSystem=full
|
|
|
|
|
ProtectHome=true
|
|
|
|
|
PrivateDevices=true
|
|
|
|
|
ProtectHostname=true
|
|
|
|
|
ProtectClock=true
|
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
|
ProtectKernelModules=true
|
|
|
|
|
ProtectKernelLogs=true
|
|
|
|
|
ProtectControlGroups=true
|
|
|
|
|
RestrictRealtime=true
|
|
|
|
|
# end of automatic additions
|
2026-01-23 14:41:58 +01:00
|
|
|
Type=notify
|
|
|
|
|
|
|
|
|
|
# Start by executing the main executable
|
|
|
|
|
ExecStart=/usr/bin/prosody -F
|
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
|
Restart=on-abnormal
|
|
|
|
|
|
|
|
|
|
User=prosody
|
|
|
|
|
Group=prosody
|
|
|
|
|
UMask=0027
|
|
|
|
|
|
|
|
|
|
RuntimeDirectory=prosody
|
|
|
|
|
ConfigurationDirectory=prosody
|
|
|
|
|
StateDirectory=prosody
|
|
|
|
|
StateDirectoryMode=0750
|
|
|
|
|
LogsDirectory=prosody
|
|
|
|
|
WorkingDirectory=~
|
|
|
|
|
|
|
|
|
|
# Set stdin to /dev/null since Prosody does not need it
|
|
|
|
|
StandardInput=null
|
|
|
|
|
|
|
|
|
|
# Direct stdout/-err to journald for use with log = "*stdout"
|
|
|
|
|
StandardOutput=journal
|
|
|
|
|
StandardError=inherit
|
|
|
|
|
|
|
|
|
|
# Allow binding low ports
|
|
|
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
2014-02-24 12:01:59 +00:00
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|
2015-04-07 20:01:48 +00:00
|
|
|
Alias=org.prosody.service
|
2026-01-23 14:41:58 +01:00
|
|
|
|
|
|
|
|
# vim: filetype=systemd
|