mirror of
https://github.com/YunoHost-Apps/snserver_ynh.git
synced 2024-09-03 20:26:22 +02:00
27 lines
583 B
SYSTEMD
27 lines
583 B
SYSTEMD
|
[Unit]
|
||
|
Description=__APP__ service
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
User=__APP__
|
||
|
Group=__APP__
|
||
|
WorkingDirectory=__FINALPATH__/live
|
||
|
Environment=RAILS_ENV=production
|
||
|
Environment="PORT=__PORT_WEB__"
|
||
|
#ExecStart=/opt/yunohost/snserver/rails s >> /var/log/snserver/snserver.log 2>&1
|
||
|
#ExecStart=__FINALPATH__/bin/rails s -e production >> /var/log/__APP__/__APP__.log 2>&1
|
||
|
ExecStart=/opt/rbenv/versions/2.6.5/bin/bundle exec puma -C config/puma.rb
|
||
|
ExecReload=/bin/kill -SIGUSR1 $MAINPID
|
||
|
StandardError=syslog
|
||
|
Restart=always
|
||
|
RestartSec=15
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|