mirror of
https://github.com/YunoHost-Apps/scrumblr_ynh.git
synced 2024-09-03 20:16:29 +02:00
Update and rename scrumblr.service to systemd.service
This commit is contained in:
parent
2846bc548a
commit
9edc13b11b
2 changed files with 16 additions and 15 deletions
|
@ -1,15 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Scrumblr is a software to take note.
|
|
||||||
After=syslog.target
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=root
|
|
||||||
WorkingDirectory=/var/www/scrumblr
|
|
||||||
ExecStart=/usr/bin/node server.js --port 85
|
|
||||||
Restart=always
|
|
||||||
Environment=USER=scrumblr HOME=/var/www/scrumblr
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
16
conf/systemd.service
Normal file
16
conf/systemd.service
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Scrumblr is a software to take note.
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=__APP__
|
||||||
|
Group=__APP__
|
||||||
|
WorkingDirectory=__FINALPATH__
|
||||||
|
ExecStartPre=__NODEJS__
|
||||||
|
Environment="PATH=__ENV_PATH__"
|
||||||
|
ExecStart=__NODE__ server.js --port __PORT__
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Add table
Reference in a new issue