1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diaspora_ynh.git synced 2024-09-03 18:26:13 +02:00
diaspora_ynh/conf/diaspora_web.service
Augustin Trancart be2806ee9e Refacto install script
- secure remove (only remove things if we did add the thing )
- switch to ynh_replace_string for some stuff (instead of templates,
    discouraged)
- extract some part pour restore script
2020-05-21 14:43:45 +02:00

15 lines
396 B
Desktop File

[Unit]
Description=Diaspora social network (unicorn - instance __APP__)
PartOf=__APP__.target
[Service]
User=__APP__
Environment=RAILS_ENV=production
WorkingDirectory=__FINALPATH__/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