Upstart hangs on reboot when "expect" is misspecified
Bug #1020951 reported by
Marti
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
New
|
Undecided
|
Unassigned |
Bug Description
While I was trying to create an Upstart conf file for daemonlogger, I tripped on a case where upstart failed to bring down the broken service. As it appeared stuck, I wanted to reboot the machine, and that became stuck as well. Finally I had to power cycle the machine to fix it (although it eventually quits after a timeout, too).
Here's how to reproduce the hang:
apt-get install daemonlogger
cat > /etc/init/
expect fork
script
daemonlogger -d -i eth0 -n eth0 -l /tmp
end script
EOF
start daemonlogger
stop daemonlogger [hangs forever]
^C
reboot
[hangs at "Asking all remaining processes to terminate..."]