30 lines
561 B
Desktop File
30 lines
561 B
Desktop File
#
|
|
# 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 '{{ tes3mp.dest }}/{{ tes3mp.name }}/TES3MP-server/tes3mp-server'
|
|
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|