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]
Type=simple
User=striker-ui-api
Group=striker-ui-api
User=root
Group=root
Environment=PORT=80
ExecStart=/usr/bin/node /usr/share/striker-ui-api/index.js
ExecStop=/bin/kill -WINCH ${MAINPID}
Restart=always

Loading…
Cancel
Save