Create Service.md

This commit is contained in:
Steven Koeberich 2015-05-31 18:12:42 +02:00
parent a29153c4c5
commit e3480ac07d

25
lib/doc/Service.md Normal file
View File

@ -0,0 +1,25 @@
### Install Init Script
Tested on Ubuntu 15.04 with installed `nodejs-legacy` package to provide `/usr/bin/node`
Copy the init script
sudo cp lib/support/arma-server-web-admin.service /etc/systemd/system/arma-server-web-admin.service
Edit the service file with the correct paths and user/group using your favorite texteditor e.g.
vim /etc/systemd/system/arma-server-web-admin.service
Enable the service to autorun at boot.
systemctl enable arma-server-web-admin
Now start the service:
systemctl start arma-server-web-admin
Your now able to use the normal service command aswell
service arma-server-web-admin start
service arma-server-web-admin status
service arma-server-web-admin stop