ansible/roles/adam/templates/adam@.service

30 lines
508 B
SYSTEMD
Raw Normal View History

2020-06-09 01:13:19 -05:00
#
# Licensed under the terms of the MIT license
# vim:ft=dosini:
#
[Unit]
Description=Adam Bot %i
After=network.target
[Service]
User=discord-adam
Group=discord-adam
WorkingDirectory=/var/adam/%i
PrivateUsers=true
ProtectSystem=full
ProtectHome=true
# Implies MountFlags=slave
ProtectKernelTunables=true
# Implies NoNewPrivileges=yes
ProtectKernelModules=true
# Implies MountAPIVFS=yes
ProtectControlGroups=true
ExecStart=/usr/bin/node index.js
Restart=always
[Install]
WantedBy=multi-user.target