forked from subuk/awx-rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
awx-web.service
32 lines (29 loc) · 891 Bytes
/
awx-web.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[Unit]
Description=AWX web service
After=syslog.target network.target
[Service]
EnvironmentFile=-/etc/sysconfig/awx
Environment=PYTHONPATH=/opt/awx/embedded/lib/python2.7/site-packages:/opt/awx/embedded/lib64/python2.7/site-packages
Environment=AWX_SETTINGS_FILE=/etc/awx/settings.py
Environment=PATH=/opt/awx/bin:/bin:/sbin:/usr/bin:/usr/sbin
ExecStart=/opt/awx/bin/uwsgi \
--socket 127.0.0.1:8050 \
--module=awx.wsgi:application \
--logto=/var/log/awx/web.log \
--die-on-term \
--vacuum \
--uid awx \
--gid awx \
--processes=5 \
--harakiri=120 \
--no-orphans \
--master \
--max-requests=1000 \
--master-fifo=/var/lib/awx/awxfifo \
--lazy-apps -b 32768
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartSec=2s
[Install]
WantedBy=multi-user.target