1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/psitransfer_ynh.git synced 2024-09-03 20:16:06 +02:00

Create systemd.service

This commit is contained in:
frju365 2017-08-10 17:04:39 +02:00 committed by GitHub
parent 1e40321765
commit e431cd4ce9

17
conf/systemd.service Normal file
View file

@ -0,0 +1,17 @@
[Unit]
Description=CryptPad is an encrypted PAD Creator
After=syslog.target
After=network.target
[Service]
Type=simple
User=__APP__
Group=__APP__
ExecStartPre=__NODEJS__
WorkingDirectory=__FINALPATH__
Environment="PATH=__ENV_PATH__"
ExecStart=/bin/bash -c 'exec __NODE__ app.js | tee /var/log/__APP__/__APP__.log'
Restart=always
[Install]
WantedBy=multi-user.target