1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/osjs_ynh.git synced 2024-09-03 19:56:11 +02:00

[Fix] $app.service

This commit is contained in:
frju365 2017-06-30 01:02:04 +02:00 committed by GitHub
parent b1502ae3e4
commit 7b681129dd

View file

@ -1,15 +1,16 @@
[Unit]
Description=OS.js is a web-desktop written in Nodejs and javascript.
After=syslog.target
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=__FINALPATH__
ExecStart=/usr/bin/node osjs run --port=__PORT__
User=__APP__
Group=__APP__
ExecStartPre=__NODEJS__
Environment="PATH=__ENV_PATH__"
ExecStart=sudo env "PATH=$PATH" $@;node osjs run --port=__PORT__
Restart=always
Environment=USER=osjs HOME=__FINALPATH__
[Install]
WantedBy=multi-user.target