mirror of
https://github.com/YunoHost-Apps/diaspora_ynh.git
synced 2024-09-03 18:26:13 +02:00
16 lines
431 B
Desktop File
16 lines
431 B
Desktop File
[Unit]
|
|
Description=Diaspora social network (unicorn - instance {{ app }})
|
|
PartOf={{ app }}.target
|
|
StopWhenUnneeded=true
|
|
|
|
[Service]
|
|
User={{ app }}
|
|
Environment=RAILS_ENV=production
|
|
WorkingDirectory={{ final_path }}/diaspora
|
|
PIDFile=/run/{{ app }}/diaspora.pid
|
|
ExecStart=/bin/bash -lc "bin/bundle exec unicorn -c config/unicorn.rb -E production"
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy={{ app }}.target
|