chore(units): start striker UI API as root and drop privileges later

main
Tsu-ba-me 2 years ago
parent 67b292dd95
commit 73fa311272
  1. 5
      units/striker-ui-api.service

@ -4,8 +4,9 @@ Wants=network.target
[Service] [Service]
Type=simple Type=simple
User=striker-ui-api User=root
Group=striker-ui-api Group=root
Environment=PORT=80
ExecStart=/usr/bin/node /usr/share/striker-ui-api/index.js ExecStart=/usr/bin/node /usr/share/striker-ui-api/index.js
ExecStop=/bin/kill -WINCH ${MAINPID} ExecStop=/bin/kill -WINCH ${MAINPID}
Restart=always Restart=always

Loading…
Cancel
Save