mirror of
https://github.com/YunoHost-Apps/timeoff_ynh.git
synced 2024-09-03 20:35:59 +02:00
18 lines
346 B
SYSTEMD
18 lines
346 B
SYSTEMD
|
[Unit]
|
||
|
Description=Timeoff management
|
||
|
After=syslog.target network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
User=__APP__
|
||
|
Group=__APP__
|
||
|
ExecStartPre=__NODEJS__
|
||
|
Environment="PATH=__ENV_PATH__"
|
||
|
Environment="PORT=__PORT__"
|
||
|
WorkingDirectory=__FINAL_PATH__
|
||
|
ExecStart=/opt/node_n/n/versions/node/8/bin/npm start
|
||
|
Restart=always
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|