2017-08-11 13:14:20 +02:00
|
|
|
[Unit]
|
2021-11-25 13:08:18 +01:00
|
|
|
Description=Turtl Server: Note taking service
|
2021-11-25 10:25:37 +01:00
|
|
|
Documentation=https://turtlapp.com/
|
|
|
|
After=network.target
|
2021-11-25 13:08:18 +01:00
|
|
|
|
2017-08-11 13:14:20 +02:00
|
|
|
[Service]
|
|
|
|
Type=simple
|
2021-11-25 10:08:00 +01:00
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
2021-11-25 12:11:24 +01:00
|
|
|
WorkingDirectory=__FINALPATH__/
|
2021-11-25 10:21:05 +01:00
|
|
|
Environment="PATH=__ENV_PATH__"
|
2021-11-25 13:18:53 +01:00
|
|
|
ExecStart=__YNH_NODE__ __FINALPATH__/server.js
|
2021-11-25 13:08:18 +01:00
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
2021-11-25 13:18:53 +01:00
|
|
|
SyslogIdentifier=__APP__
|
2021-11-25 13:08:18 +01:00
|
|
|
Restart=always
|
|
|
|
RestartSec=10
|
|
|
|
StartLimitInterval=900
|
|
|
|
StartLimitBurst=3
|
2017-08-11 13:14:20 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|