1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/acropolis_ynh.git synced 2024-09-03 18:06:22 +02:00
acropolis_ynh/conf/acropolis-web.service

20 lines
No EOL
509 B
Desktop File

[Unit]
Description=__APP__-web
After=network.target
[Service]
Type=simple
User=__APP__
WorkingDirectory=__INSTALL_DIR__
Environment="RAILS_ENV=production"
Environment="PORT=__PORT_WEB__"
Environment=UNICORN_LISTENER=__INSTALL_DIR__/tmp/sockets/unicorn.sock
ExecStart=__RBENV_ROOT__/versions/__APP__/bin/bundle exec unicorn --config config/unicorn.rb -E production
ExecReload=/bin/kill -SIGUSR1 $MAINPID
TimeoutSec=60
RestartSec=60
Restart=on-failure
StandardError=syslog
[Install]
WantedBy=multi-user.target