faxrunqd hangs on /etc/init.d/mgetty-fax stop
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mgetty (Debian) |
Fix Released
|
Unknown
|
|||
mgetty (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: mgetty-fax
faxrunqd hangs on "/etc/init.
Most likely this is due a change in the handling of SIGHUP (see changes.debian.gz), this signal now does a graceful restart.
By changing the line to "--retry -INT/5/-TERM" faxrunqd shuts down much nicer - obviously faxrunqd already has special handling to SIGINT so this is isn't as brutish as it looks on first sight. Also I lowered the timeout because the fax will get resend after next start of faxrunqd anyway.
I did some guesses about behaviour of faxrunqd because it is a bit late and the fix seems smart enough. Hopefully they are educated guesses, please doublecheck.
Changed in mgetty: | |
importance: | Undecided → Wishlist |
Changed in mgetty: | |
status: | New → Fix Released |
Changed in mgetty: | |
status: | Unknown → Fix Released |
tags 235196 +pending
thanks
* Shaul Karl (<email address hidden>) [040227 22:25]:
> SIGINT
> SIGTERM
> remove lock file, remove pid file, terminate immediately.
> SIGHUP
> finish all fax jobs that are currently being sent, then termi-
> nate (this is used to signal faxrunqd "I want you to terminate"
> without disturbing the normal flow of operation - SIGINT/TERM
> etc. can lead to some faxes being sent twice).
> echo -n "Stopping $DESC: $NAME." mgetty- fax/$NAME. pid ] && echo || echo " (not running)" mgetty- fax/$NAME. pid \
> [ -f /var/run/
> start-stop-daemon --stop --quiet --pidfile /var/run/
> - --oknodo --name $NAME --signal USR2
> + --oknodo --name $NAME --signal TERM
I did a HUP here, as a graceful stopping is always better, and I added
a --retry -HUP/60/-TERM, so that after 60 seconds, faxrund is stopped
the hard way.
I commited this change to cvs, so it'll be included in the next
upload.
Cheers, home.arcor. de/andreas- barth/
Andi
--
http://
PGP 1024/89FB5CE5 DC F1 85 6D A6 45 9C 0F 3B BE F1 D0 C5 D1 D9 0C