ansible/roles/tes3mp/templates/tes3mp@.service

30 lines
561 B
SYSTEMD
Raw Normal View History

2020-08-23 23:12:39 -05:00
#
# 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
2020-08-23 23:40:24 -05:00
ExecStart=/bin/sh -c '{{ tes3mp.dest }}/{{ tes3mp.name }}/TES3MP-server/tes3mp-server'
2020-08-23 23:12:39 -05:00
Restart=on-failure
[Install]
WantedBy=multi-user.target