30 lines
571 B
SYSTEMD
30 lines
571 B
SYSTEMD
|
#
|
||
|
# Licensed under the terms of the MIT license
|
||
|
# vim:ft=dosini:
|
||
|
#
|
||
|
|
||
|
[Unit]
|
||
|
Description=TES3MP Server %i
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
User=tes3mp
|
||
|
Group=tes3mp
|
||
|
WorkingDirectory={{ tes3mp.dest }}/%i
|
||
|
PrivateUsers=true
|
||
|
ProtectSystem=full
|
||
|
ProtectHome=true
|
||
|
# Implies MountFlags=slave
|
||
|
ProtectKernelTunables=true
|
||
|
# Implies NoNewPrivileges=yes
|
||
|
ProtectKernelModules=true
|
||
|
# Implies MountAPIVFS=yes
|
||
|
ProtectControlGroups=true
|
||
|
|
||
|
ExecStart=/bin/sh -c '/usr/bin/screen -DmS %i {{ tes3mp.dest }}/{{ tes3mp.name }}/tes3mp-server'
|
||
|
|
||
|
Restart=on-failure
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|