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