systemd: Start service definition.

This commit is contained in:
Brett Smith 2020-01-27 09:00:03 -05:00
parent 0b9f9d0a10
commit f0c0ab9f2c

View file

@ -0,0 +1,27 @@
[Unit]
Description=XMPP Messsage Forwarding Bot
Wants=network-online.target
After=network-online.target
[Install]
WantedBy=default.target
[Service]
ExecStart=/usr/bin/python3 -m forwardxmpp --config-file /etc/forwardxmpp/config.ini
DynamicUser=true
PrivateDevices=true
PrivateNetwork=false
PrivateTmp=true
PrivateUsers=true
ProtectControlGroups=true
ProtectHome=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
CapabilityBoundingSet=
NoNewPrivileges=true
SystemCallFilter=~@clock @cpu-emulation @debug @module @mount @obsolete