mirror of
https://github.com/YunoHost-Apps/snserver_ynh.git
synced 2024-09-03 20:26:22 +02:00
21 lines
511 B
Desktop File
21 lines
511 B
Desktop File
[Unit]
|
|
Description=__APP__ service
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=__APP__
|
|
Group=__APP__
|
|
WorkingDirectory=__FINALPATH__/live
|
|
Environment=RAILS_ENV=production
|
|
Environment="PORT=__PORT__"
|
|
ExecStart=/opt/rbenv/versions/__RUBY_VERSION__/bin/bundle exec rails server
|
|
ExecReload=/bin/kill -SIGUSR1 $MAINPID
|
|
StandardOutput=append:/var/log/__APP__/__APP__.log
|
|
StandardError=append:/var/log/__APP__/__APP__.log
|
|
SyslogIdentifier=__APP__
|
|
Restart=always
|
|
RestartSec=15
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|