1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/discourse_ynh.git synced 2024-09-03 18:26:18 +02:00
discourse_ynh/conf/discourse-puma.service
2018-04-29 11:25:32 +02:00

23 lines
571 B
Desktop File

[Unit]
Description=__APP__ puma service
Wants=postgresql.service
Wants=redis-server.service
After=redis-server.service
After=postgresql.service
After=discourse-sidekiq.service
Requires=discourse-sidekiq.service
[Service]
User=__APP__
Group=__APP__
WorkingDirectory=__FINALPATH__
Environment=__ADDITIONAL_ENV__
Environment=RAILS_ENV=production
ExecStart=__RBENVROOT__/shims/bundle exec puma --config config/puma.rb -e production
ExecStop=__RBENVROOT__/shims/bundle exec pumactl stop
RemainAfterExit=true
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target