anvil/units/striker-ui-api.service

17 lines
382 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Anvil! Intelligent Availability Platform - Striker UI API
Wants=network.target
[Service]
Type=simple
# Run as apache to allow the API to access apache-owned locations; i.e., /mnt/shared.
User=apache
Group=apache
ExecStart=/usr/bin/node /usr/share/striker-ui-api/index.js
ExecStop=/bin/kill -WINCH ${MAINPID}
Restart=always
[Install]
WantedBy=multi-user.target