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]
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
EnvironmentFile=/etc/nightscout/nightscout-environ
ReadOnlyPaths=/usr/lib/node_modules/nightscout
Restart=on-failure
PrivateTmp=yes
@ -33,7 +35,7 @@ RestrictSUIDSGID=yes
NoNewPrivileges=yes
LockPersonality=yes
MemoryDenyWriteExecute=yes
#MemoryDenyWriteExecute=yes
CapabilityBoundingSet=
SystemCallArchitectures=native