Skip to content
Freddo edited this page Jul 23, 2019 · 3 revisions

Create the file arma-server-web-admin.service in `/etc/systemd/system/´

# arma-server-web-admin.service

[Service]
ExecStart=</path/to/node> </path/to/arma-server-web-admin/app.js>
WorkingDirectory=</path/to/arma-server-web-admin>
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=arma-server-web-admin
User=<user id
Group=<user group id>
Environment=NODE_ENV=production

[Install]
WantedBy=multi-user.target
  • Enable the service with systemctl enable arma-server-web-admin
  • Disable the service with systemctl disable arma-server-web-admin
  • Start the service with systemctl start arma-server-web-admin
  • Stop the service with systemctl stop arma-server-web-admin
Clone this wiki locally