Install the customized systemd service files for pagure on distgit
This commit is contained in:
parent
9230b9fc80
commit
0757b47a15
5 changed files with 47 additions and 4 deletions
13
roles/distgit/pagure/files/pagure_ev.service
Normal file
13
roles/distgit/pagure/files/pagure_ev.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Pagure EventSource server (Allowing live refresh of the pages supporting it)
|
||||
After=redis.target
|
||||
Documentation=https://pagure.io/pagure
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/libexec/pagure-ev/pagure_stream_server.py
|
||||
Type=simple
|
||||
User=pagure
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
13
roles/distgit/pagure/files/pagure_logcom.service
Normal file
13
roles/distgit/pagure/files/pagure_logcom.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Pagure Logging Commit service
|
||||
After=redis.target
|
||||
Documentation=https://pagure.io/pagure
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/libexec/pagure-logcom/pagure_logcom_server.py
|
||||
Type=simple
|
||||
User=pagure
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
13
roles/distgit/pagure/files/pagure_webhook.service
Normal file
13
roles/distgit/pagure/files/pagure_webhook.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Pagure WebHook server (Allowing web-hook notifications)
|
||||
After=redis.target
|
||||
Documentation=https://pagure.io/pagure
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/libexec/pagure-webhook/pagure-webhook-server.py
|
||||
Type=simple
|
||||
User=pagure
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -8,7 +8,6 @@ ExecStart=/usr/bin/celery worker -A pagure.lib.tasks --loglevel=info --autoreloa
|
|||
Environment="PAGURE_CONFIG=/etc/pagure/pagure.cfg"
|
||||
Type=simple
|
||||
User=pagure
|
||||
#Group=pagure
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
|
|
|
@ -139,9 +139,14 @@
|
|||
- pagure
|
||||
|
||||
- name: Override the default pagure_worker.service file to change the user it is run under
|
||||
copy: src=pagure_worker.service
|
||||
dest=/etc/systemd/system/pagure_worker.service
|
||||
copy: src={{ item }}.service
|
||||
dest=/etc/systemd/system/{{ item }}.service
|
||||
owner=root group=root mode=0755
|
||||
with_items:
|
||||
- pagure_ev
|
||||
- pagure_logcom
|
||||
- pagure_webhook
|
||||
- pagure_worker
|
||||
notify:
|
||||
- reload systemd
|
||||
tags:
|
||||
|
@ -174,10 +179,10 @@
|
|||
- httpd
|
||||
- postfix
|
||||
# - stunnel
|
||||
- pagure_milter
|
||||
- redis
|
||||
- pagure_ev
|
||||
- pagure_logcom
|
||||
- pagure_milter
|
||||
- pagure_webhook
|
||||
- pagure_worker
|
||||
- fedmsg-relay
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue