Your message dated Fri, 01 Sep 2023 12:19:28 +0000
with message-id <[email protected]>
and subject line Bug#568092: fixed in daemontools 1:0.76-9
has caused the Debian Bug report #568092,
regarding daemontools: support QUIT, USR[12] signals
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
568092: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568092
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: daemontools
Severity: wishlist
Version: 0.76-3
Tags: patch

It would be handy if we could send QUIT/USR1/USR2 signals to
supervise-managed processes.  Handily, there's already a patch for that out
in the wild:

http://thedjbway.b0llix.net/patches/daemontools-0.76.sigq12.patch

I adjusted it ever-so-slightly and added manpage bits, to produce the
attached patch.

- Matt
diff -u daemontools-0.76/debian/changelog daemontools-0.76/debian/changelog
--- daemontools-0.76/debian/changelog
+++ daemontools-0.76/debian/changelog
@@ -1,3 +1,9 @@
+daemontools (1:0.76-3anchor1) unstable; urgency=low
+
+  * Patch svc to send USR1, USR2, and QUIT signals.
+
+ -- Matt Palmer <[email protected]>  Tue, 02 Feb 2010 21:38:55 +1100
+
 daemontools (1:0.76-3) unstable; urgency=low
 
   * debian/daemontools-run.postinst: don't exec into the kill program, so
diff -u daemontools-0.76/debian/daemontools-man/svc.8 daemontools-0.76/debian/daemontools-man/svc.8
--- daemontools-0.76/debian/daemontools-man/svc.8
+++ daemontools-0.76/debian/daemontools-man/svc.8
@@ -72,6 +72,21 @@
 .I service
 a KILL signal. 
 .TP
+.B \-q
+Quit. Send the
+.I service
+a QUIT signal. 
+.TP
+.B \-1
+Send the
+.I service
+a USR1 signal. 
+.TP
+.B \-2
+Send the
+.I service
+a USR2 signal. 
+.TP
 .B \-x
 Exit.
 .BR supervise (8)
only in patch2:
unchanged:
--- daemontools-0.76.orig/daemontools-0.76/src/supervise.c
+++ daemontools-0.76/daemontools-0.76/src/supervise.c
@@ -187,6 +187,15 @@
 	case 'i':
 	  if (pid) kill(pid,SIGINT);
 	  break;
+	case 'q':
+	  if (pid) kill(pid,SIGQUIT);
+	  break;
+	case '1':
+	  if (pid) kill(pid,SIGUSR1);
+	  break;
+	case '2':
+	  if (pid) kill(pid,SIGUSR2);
+	  break;
 	case 'p':
 	  flagpaused = 1;
 	  announce();
only in patch2:
unchanged:
--- daemontools-0.76.orig/daemontools-0.76/src/svc.c
+++ daemontools-0.76/daemontools-0.76/src/svc.c
@@ -27,9 +27,9 @@
 
   sig_ignore(sig_pipe);
 
-  while ((opt = getopt(argc,argv,"udopchaitkx")) != opteof)
+  while ((opt = getopt(argc,argv,"udopchaitkxq12")) != opteof)
     if (opt == '?')
-      strerr_die1x(100,"svc options: u up, d down, o once, x exit, p pause, c continue, h hup, a alarm, i interrupt, t term, k kill");
+      strerr_die1x(100,"svc options: u up, d down, o once, x exit, p pause, c continue, h hup, a alarm, i interrupt, t term, k kill, q quit, 1 usr1, 2 usr2");
     else
       if (datalen < sizeof data)
         if (byte_chr(data,datalen,opt) == datalen)

--- End Message ---
--- Begin Message ---
Source: daemontools
Source-Version: 1:0.76-9
Done: Jan Mojžíš <[email protected]>

We believe that the bug you reported is fixed in the latest version of
daemontools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jan Mojžíš <[email protected]> (supplier of updated daemontools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 01 Sep 2023 07:42:50 +0200
Source: daemontools
Architecture: source
Version: 1:0.76-9
Distribution: unstable
Urgency: medium
Maintainer: Joost van Baal-Ilić <[email protected]>
Changed-By: Jan Mojžíš <[email protected]>
Closes: 568092 1044433
Changes:
 daemontools (1:0.76-9) unstable; urgency=medium
 .
   * d/control: bump Standards-Version to 4.6.2, no changes
   * d/gbp.conf added new gbp.conf configuration file
   * d/rules: remove also daemontools-0.76/command directory in cleanup stage
     (Closes: 1044433)
   * d/p/0004-daemontools-sigq12.patch added, allows svc to send
     USR1, USR2, and QUIT signals. Thanks to Matt Palmer. (Closes: 568092)
Checksums-Sha1:
 d59c3505138b37ca4a6df97d5bbc08988276ab2b 2074 daemontools_0.76-9.dsc
 2d40459e105c841e41bf6dc4bc7bb66128ccc337 19972 daemontools_0.76-9.debian.tar.xz
 48933431ac37fcf43ff3b47b979619dbb5e845ba 5603 
daemontools_0.76-9_source.buildinfo
Checksums-Sha256:
 6d07b08b54d0c70fdee4a0762bbf5ff607398e844aaa814c9c73bbfd74592cb2 2074 
daemontools_0.76-9.dsc
 b2eade16405f7c597c218f2a5112edf84d3c8d934467a6e34179250fd27c2ada 19972 
daemontools_0.76-9.debian.tar.xz
 8e831e157e03b6fee8e61dad1cb697689fce1ea43c226295cbdf9aa259a71ce5 5603 
daemontools_0.76-9_source.buildinfo
Files:
 c73bb6e04db468b33a5f935e2f05524a 2074 admin optional daemontools_0.76-9.dsc
 2ab19626e8ce069194913064840c4c4f 19972 admin optional 
daemontools_0.76-9.debian.tar.xz
 c6f92f84ab5ea2d85de81c8881a95f3d 5603 admin optional 
daemontools_0.76-9_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJJBAEBCgAzFiEE0Aiwwj2EeeRrn8uQRdpRdJaTn/kFAmTxzmgVHGphbi5tb2p6
aXNAZ21haWwuY29tAAoJEEXaUXSWk5/5qaMQAITpZfX8USXVahj+0I1bQPVEYAEN
GdsJkFR0Uwef7rFrjhiwK0wEVWu9Ek4/PuN2pQWn6fyXeQJ342MSyZkYTy3wlaEz
4akeobXih8XjOTYxMrqUVP9zDxhTkApQd1yvK8Wt1ty6IBdRTWomMEKKxV8Mjwqr
fsMOW7pd35bhtOY6dVdWP8Bf2m9Ab5nJGLVrYCJ/BxiCGgMo7DtN8OnQvfSeTavH
qcgV01DRTnvcPYNNInq5EJSO5dJ4boRLYgv18rn4bDd1e9fHYCQ0toWorUlvzwSv
6OU5p0lM5jERzqJxlrJaDrmRxgcoqZH2sNqrtsozxQea+ZNI90v38IAMFzLj/J00
KHVZa6fcfvnCJq0J0+kFGB0o5XsTZF42j0+w3j07EMjamMvAw+U7/zaU9nr45qpf
qLEkEBK0rZHsLxVEq9FFllfpr9rxBt9dr+u+701D1LGNhU4lofqV3N5y9P0vZUt3
orfXA1OMt9gyfDFpOwEVtE0UDx4SJyTOPFdRmkqBbcSdFf2u1RE10SfgQfqU1lkH
hOGgQRWZwsi485UrAhMLKyXC1JJ9J7v5WsnIz48/oKoLrRwt5IiGtlJmukEV2fme
OCprCsAQRNRvTR54VoQZlyVVC6YFN9oZCoIY5jR+BY3IVelgHAgAFkHE5P2jWoSl
V2+3jMqKhb2KcrYZ
=XX07
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to