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"
|
Environment="PAGURE_CONFIG=/etc/pagure/pagure.cfg"
|
||||||
Type=simple
|
Type=simple
|
||||||
User=pagure
|
User=pagure
|
||||||
#Group=pagure
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -139,9 +139,14 @@
|
||||||
- pagure
|
- pagure
|
||||||
|
|
||||||
- name: Override the default pagure_worker.service file to change the user it is run under
|
- name: Override the default pagure_worker.service file to change the user it is run under
|
||||||
copy: src=pagure_worker.service
|
copy: src={{ item }}.service
|
||||||
dest=/etc/systemd/system/pagure_worker.service
|
dest=/etc/systemd/system/{{ item }}.service
|
||||||
owner=root group=root mode=0755
|
owner=root group=root mode=0755
|
||||||
|
with_items:
|
||||||
|
- pagure_ev
|
||||||
|
- pagure_logcom
|
||||||
|
- pagure_webhook
|
||||||
|
- pagure_worker
|
||||||
notify:
|
notify:
|
||||||
- reload systemd
|
- reload systemd
|
||||||
tags:
|
tags:
|
||||||
|
@ -174,10 +179,10 @@
|
||||||
- httpd
|
- httpd
|
||||||
- postfix
|
- postfix
|
||||||
# - stunnel
|
# - stunnel
|
||||||
- pagure_milter
|
|
||||||
- redis
|
- redis
|
||||||
- pagure_ev
|
- pagure_ev
|
||||||
- pagure_logcom
|
- pagure_logcom
|
||||||
|
- pagure_milter
|
||||||
- pagure_webhook
|
- pagure_webhook
|
||||||
- pagure_worker
|
- pagure_worker
|
||||||
- fedmsg-relay
|
- fedmsg-relay
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue