mirror of
https://github.com/YunoHost-Apps/discourse_ynh.git
synced 2024-09-03 18:26:18 +02:00
23 lines
571 B
Desktop File
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
|