systemd: Start service definition.
This commit is contained in:
parent
0b9f9d0a10
commit
f0c0ab9f2c
1 changed files with 27 additions and 0 deletions
27
systemd/forwardxmpp.service
Normal file
27
systemd/forwardxmpp.service
Normal 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
|
Loading…
Reference in a new issue