1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/distbin_ynh.git synced 2024-09-03 18:26:10 +02:00
distbin_ynh/conf/systemd.service

15 lines
361 B
SYSTEMD
Raw Normal View History

2019-01-28 19:15:11 +01:00
[Unit]
Description=Small description of the service
After=network.target
[Service]
Type=simple
User=__APP__
Group=__APP__
2019-01-28 23:23:53 +01:00
Environment="PATH=__ENV_PATH__"
2019-01-28 19:15:11 +01:00
WorkingDirectory=__FINALPATH__/
2019-01-28 23:23:53 +01:00
ExecStart=/bin/bash -c 'ts-node --project __FINALPATH__/tsconfig.json __FINALPATH__/bin/server.ts >> /var/log/__APP__/__APP__.log 2>&1'
2019-01-28 19:15:11 +01:00
[Install]
WantedBy=multi-user.target