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.

15 lines
443B

  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. ExecStart=/bin/bash -lc "bin/bundle exec unicorn -c config/unicorn.rb -E {{ diaspora.configuration.server.rails_environment }}"
  10. Restart=always
  11. [Install]
  12. WantedBy=diaspora.target