summarylogtreecommitdiffstats
path: root/etherdraw.service
blob: 027ff0c71e77ccc9fe50ccb094fa218b69399828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[Unit]
Description=Etherdraw
Documentation=https://github.com/JohnMcLear/draw/wiki
After=network.target

[Service]
Environment=NODE_ENV=production
User=etherdraw
Group=etherdraw
StateDirectory=etherdraw
CacheDirectory=etherdraw
LogsDirectory=etherdraw
WorkingDirectory=/usr/share/etherdraw
ExecStart=/usr/bin/node /usr/share/etherdraw/src/server.js --settings /etc/etherdraw/settings.json
PrivateTmp=true
NoNewPrivileges=true
PrivateDevices=true
ProtectHome=yes
ProtectControlGroups=yes
ProtectKernelModules=yes
Restart=always

[Install]
WantedBy=multi-user.target