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

22 lines
507 B
SYSTEMD
Raw Normal View History

2020-01-18 10:28:47 +01:00
[Unit]
Description=__APP__ service
After=network.target
[Service]
Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__FINALPATH__/live
Environment=RAILS_ENV=production
2020-12-24 12:11:42 +01:00
Environment="PORT=__PORT__"
2020-12-20 00:27:44 +01:00
ExecStart=/opt/rbenv/versions/__RUBY_VERSION__/bin/bundle exec rails server
2020-01-18 10:28:47 +01:00
ExecReload=/bin/kill -SIGUSR1 $MAINPID
2020-12-20 18:08:17 +01:00
StandardOutput=file:/var/log/__APP__/__APP__.log
StandardError=file:/var/log/__APP__/__APP__.log
2020-12-20 00:27:44 +01:00
SyslogIdentifier=__APP__
2020-01-18 10:28:47 +01:00
Restart=always
RestartSec=15
[Install]
WantedBy=multi-user.target