SuperTux88's Diaspora Saltstack Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
532B

  1. [Unit]
  2. Description=Diaspora social network (unicorn)
  3. PartOf=diaspora.target
  4. StopWhenUnneeded=true
  5. [Service]
  6. User={{ diaspora.user.username }}
  7. Environment=RAILS_ENV={{ diaspora.configuration.server.rails_environment }}
  8. WorkingDirectory={{ diaspora.install_path }}
  9. PIDFile={{ diaspora.install_path }}/tmp/pids/web.pid
  10. ExecStart=/bin/bash -lc "bin/bundle exec unicorn -c config/unicorn.rb -E {{ diaspora.configuration.server.rails_environment }}"
  11. ExecReload=/bin/kill -USR2 $MAINPID
  12. Restart=always
  13. [Install]
  14. WantedBy=diaspora.target