Comment 0 for bug 75058

Revision history for this message
In , Shaul Karl (shaulk) wrote : stop target of init.d sends SIGUSR2. Using SIGHUP for restart?

Package: mgetty-fax
Version: 1.1.30-8
Severity: normal
Tags: patch

  Quoting man faxrunqd:

    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).
    SIGUSR2
       dump current modem success/failure statistics to log file.

--- /etc/init.d/mgetty-fax 2004-02-27 22:48:02.000000000 +0200
+++ /etc/init.d/mgetty-fax 2004-02-27 22:50:55.000000000 +0200
@@ -33,7 +33,7 @@
  echo -n "Stopping $DESC: $NAME."
  [ -f /var/run/mgetty-fax/$NAME.pid ] && echo || echo " (not running)"
  start-stop-daemon --stop --quiet --pidfile /var/run/mgetty-fax/$NAME.pid \
- --oknodo --name $NAME --signal USR2
+ --oknodo --name $NAME --signal TERM
  ;;
   #reload)
  #
@@ -54,7 +54,8 @@
  # just the same as "restart".
  #
  echo -n "Restarting $DESC: "
- $0 stop
+ start-stop-daemon --stop --quiet --pidfile /var/run/mgetty-fax/$NAME.pid \
+ --oknodo --name $NAME --signal HUP
  sleep 1
  $0 start
  echo "$NAME."

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (600, 'testing'), (50, 'unstable')
Architecture: i386 (i486)
Kernel: Linux 2.6.3-2.custom486.1
Locale: LANG=C, LC_CTYPE=C

Versions of packages mgetty-fax depends on:
ii cron 3.0pl1-83 management of regular background p
ii debconf 1.3.22 Debian configuration management sy
ii libc6 2.3.2.ds1-11 GNU C Library: Shared libraries an
ii mgetty 1.1.30-8 Smart Modem getty replacement

-- debconf information:
* mgetty-fax/start_faxrunqd: true
  mgetty-fax/new_security_scheme:

--
"If you have an apple and I have an apple and we exchange apples then
you and I will still each have one apple. But if you have an idea and I
have an idea and we exchange these ideas, then each of us will have two
ideas." -- George Bernard Shaw (sent by shaulk @ actcom . net . il)