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:
parent
b1502ae3e4
commit
7b681129dd
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue