Skip to content

Commit 59433e2

Browse files
committed
Don't daemonize by default
Don't need to daemonize for systemd and upstart. They handle logging of stdout too. Explicitly daemonize for the crontab run.
1 parent 9ea6ca9 commit 59433e2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
file: state=directory path=/var/log/uwsgi mode=0770 owner=root group=www-data
3333

3434
- name: Setup crontab to run uwsgi emperor on reboot
35-
cron: name="run uwsgi emperor" special_time=reboot job="/usr/local/bin/uwsgi --ini /etc/uwsgi/emperor.ini"
35+
cron: name="run uwsgi emperor" special_time=reboot job="/usr/local/bin/uwsgi --ini /etc/uwsgi/emperor.ini --daemonize /var/log/uwsgi/emperor.log"
3636
when: ansible_distribution == 'Debian' and ansible_lsb.major_release|int < 8
3737

3838
- name: Setup upstart job for the emperor

templates/emperor.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[uwsgi]
2-
daemonize = /var/log/uwsgi/emperor.log
32
pidfile = /run/uwsgi-emperor.pid
43
emperor = %d/vassals/*.ini
54
master = true

0 commit comments

Comments
 (0)