daemontools, Apache, and the Whole Process Group
- Postfix, iPhone, Apple Mail and the reject
- Updating the SSL certs on the Unifi Controller
- Firefox and org-protocol URL Capture
- System Hangs on Shutdown
- Let's Encrypt Certificates and Arch
- /bin/mail as MTA
- Filtering bots with erc
- DSCP Tagging with iptables
- Bitlbee, Purple-Sipe-Lync, and Certificates
- daemontools, Apache, and the Whole Process Group
- Comma Trouble
- Emacs DNS Mode
- Wrangling Namespaces in Python
- Using Skype from Emacs
- Choosing the Right Technology
- Django, Testing, and Sessions
- KMS, xvideo-intel, and Arch Linux
- Verizon UMW-190 and Arch Linux
- Hawking Range Extender and Linux
- CUPS driver for the Dell 1320C Printer on Arch
- SANE and the Canon LIDE 20
- Getting easypg working in Ubuntu
daemontools, Apache, and the Whole Process Group
Published 2011-08-05
There went a few hours of my life.
My server configurator detects changes in config files and will restart Apache if needed. Since I use daemontools to handle my daemons, the configurator does a svc -t /service/apache
when it wants to kick Apache to re-read its configs (yes, it should be a SIGHUP
– I changed it).
After an update the other day, I started seeing all my daemons getting kicked when a process kicked Apache. Ugh. Essentially, supervise
, the daemontools supervisor, was getting killed by the svc -t
call. Turns-out Apache kills its entire process group when it gets a SIGKILL
. Of, course, djb has already fixed this problem, so here’s the correct run file for apache:
#!/bin/bash exec 2>&1 exec pgrphack /usr/sbin/httpd -DFOREGROUND
Maybe this will save you a few hours.