30 lines
508 B
SYSTEMD
30 lines
508 B
SYSTEMD
|
#
|
||
|
# 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
|