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.
|
- [Unit]
- Description=Openproject in a Unicorn
- Requires=network.target
- #Requires=nginx.service
- Before=nginx.service
-
- [Service]
- Type=simple
- {% if unicorn.socket == "tcp" %}
- ExecStart=/bin/sh -l -c "bundle exec unicorn --port {{unicorn.port}} --host {{unicorn.host}} --env production"
- {% elif unicorn.socket == "unix" %}
- ExecStart=/bin/sh -l -c "bundle exec unicorn --listen {{unicorn.path}} --env production"
- {% endif %}
- PrivateTmp=yes
- User={{openproject_user}}
- Group={{openproject_group}}
- WorkingDirectory={{openproject_path}}/openproject
- Restart=always
- Environment="SECRET_KEY_BASE={{secret_key_base}}"
-
- [Install]
- WantedBy=multiuser.target
|