Update unit file

This commit is contained in:
Alex Manning 2021-04-06 19:18:23 +01:00
parent 66beaf4268
commit 7a37d55a95

View file

@ -3,11 +3,13 @@ Description=Nightscout CGM.
[Service] [Service]
WorkingDirectory=/usr/lib/node_modules/nightscout WorkingDirectory=/usr/lib/node_modules/nightscout
ExecStart=/usr/bin/node /usr/lib/node_modules/nightscout/server.js ExecStart=/usr/bin/node server.js
DynamicUser=yes DynamicUser=yes
EnvironmentFile=/etc/nightscout/nightscout-environ EnvironmentFile=/etc/nightscout/nightscout-environ
ReadOnlyPaths=/usr/lib/node_modules/nightscout
Restart=on-failure Restart=on-failure
PrivateTmp=yes PrivateTmp=yes
@ -33,7 +35,7 @@ RestrictSUIDSGID=yes
NoNewPrivileges=yes NoNewPrivileges=yes
LockPersonality=yes LockPersonality=yes
MemoryDenyWriteExecute=yes #MemoryDenyWriteExecute=yes
CapabilityBoundingSet= CapabilityBoundingSet=
SystemCallArchitectures=native SystemCallArchitectures=native