Your message dated Sat, 08 Jun 2013 09:49:04 +0000
with message-id <[email protected]>
and subject line Bug#669109: fixed in sec 2.7.3-1
has caused the Debian Bug report #669109,
regarding Sec (Simple Event Correlator) can start multiple times when running
as a daemon using init.d/sec start
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.)
--
669109: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=669109
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sec
Version: 2.5.3-1+nmu1
When i use Sec as a daemon,
diff --git a/default/sec b/default/sec
index 4ce6955..70a8e2b 100644
--- a/default/sec
+++ b/default/sec
@@ -1,3 +1,3 @@
#Defaults for sec
-RUN_DAEMON="no"
+RUN_DAEMON="yes"
Sec can be started multiple times with init.d/sec when running sec as a
daemon, this because checks in the startup function in init.d/sec are
wrong. This means that there multiple sec processes running and only one
pid file is available.
In the documentation of start-stop-daemon --exec means `Check for
processes that are instances of this executable (according to
/proc/pid/exe)`. In the init.d/sec script
NAME=sec
DAEMON=/usr/bin/$NAME
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON
--test > /dev/null
This should mean that /proc/pid/exe must point to /usr/bin/$NAME,
/usr/bin/sec in this situation.
$ ps afux | grep sec.pid
root 783 0.0 0.7 35836 7980 ? S 16:58 0:00
/usr/bin/perl -w /usr/bin/sec -conf=/etc/sec.conf -input=/var/log/syslog
-pid=/var/run/sec.pid -detach -syslog=daemon
$ ll /proc/783/exe
lrwxrwxrwx 1 root root 0 Apr 16 16:58 /proc/783/exe -> /usr/bin/perl
I've created a patch for this issue, but I'm not sure if this patch is
correct.
diff --git a/init.d/sec b/init.d/sec
index ef79314..e070873 100755
--- a/init.d/sec
+++ b/init.d/sec
@@ -19,6 +19,7 @@
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Simple Event Correlator"
NAME=sec
+PERL=/usr/bin/perl
DAEMON=/usr/bin/$NAME
#DAEMON_ARGS="--options args"
PIDFILE=/var/run/$NAME.pid
@@ -51,9 +52,9 @@ do_start()
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
- start-stop-daemon --start --quiet --pidfile $PIDFILE --exec
$DAEMON --test > /dev/null \
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec
$PERL --startas $DAEMON --test > /dev/null \
|| return 1
- start-stop-daemon --start --quiet --pidfile $PIDFILE --exec
$DAEMON -- \
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec
$PERL --startas $DAEMON -- \
$DAEMON_ARGS \
|| return 2
# Add code here, if necessary, that waits for the process to be
ready
@@ -71,7 +72,7 @@ do_stop()
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
- start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5
--pidfile $PIDFILE --name $NAME
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5
--pidfile $PIDFILE --exec $PERL
RETVAL="$?"
[ "$RETVAL" = 2 ] && return 2
I am using `Linux [...] 3.2.0-2-amd64 [...] x86_64 GNU/Linux` with Wheezy.
--
Frank Baalbergen - System / Network Engineer
T +31 (0)10 2760434 | [email protected] | www.mendix.com
--- End Message ---
--- Begin Message ---
Source: sec
Source-Version: 2.7.3-1
We believe that the bug you reported is fixed in the latest version of
sec, 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.
Jaakko Niemi <[email protected]> (supplier of updated sec 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: SHA1
Format: 1.8
Date: Fri, 07 Jun 2013 23:18:05 +0300
Source: sec
Binary: sec
Architecture: source all
Version: 2.7.3-1
Distribution: unstable
Urgency: low
Maintainer: Jaakko Niemi <[email protected]>
Changed-By: Jaakko Niemi <[email protected]>
Description:
sec - Simple Event Correlator
Closes: 669109
Changes:
sec (2.7.3-1) unstable; urgency=low
.
* New upstream release
* update standards version, no changes needed
* Apply patch from #669109 to avoid multiple starts,
Thanks, Frank Baalbergen (Closes: #669109)
* Update FHS fields in init script (argh!)
Checksums-Sha1:
a262e574c59caa3c05d2c9752ea9124df991d304 947 sec_2.7.3-1.dsc
926747fb34e45597d24cf6b7a44b9d23be01f7d0 111597 sec_2.7.3.orig.tar.gz
beb4ea47088eeb9b4cd6af3d97be8a7472ba804a 3289 sec_2.7.3-1.diff.gz
69aa0d36a5f570b4f8901895c4fbe78c5723911f 108290 sec_2.7.3-1_all.deb
Checksums-Sha256:
5d72c5347a876b4b8f7a66c9853b5caa09f1c03f6814f0c2bf1a0aa936142a19 947
sec_2.7.3-1.dsc
2c885a06cb111537b06135379c402f3229ed97dc1d5808dba98a1c138486afc3 111597
sec_2.7.3.orig.tar.gz
46f09f96f39c7d0e504decfe38543e18c5dccece43e94671b9c77d9a4aba168c 3289
sec_2.7.3-1.diff.gz
1747a1fb1f593f4427afc6eec96b15496df8baa1cc90e25f1155a1171016dbda 108290
sec_2.7.3-1_all.deb
Files:
76ad31817fd99e39b6d864d23e6fa554 947 utils optional sec_2.7.3-1.dsc
ceaa72afa338ead80147511bc810720e 111597 utils optional sec_2.7.3.orig.tar.gz
93dbbad070ba81e678e905c52424ef4e 3289 utils optional sec_2.7.3-1.diff.gz
156c48dafa9e9f965abf7683bd9a62b5 108290 utils optional sec_2.7.3-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iD8DBQFRskBqJMXP5PVSFUERAlXEAKCqvJKyHO3qihIEBJ6GaNnLuzo09wCePMt+
B9+8ju4vwRCWhYeklMP2SQM=
=syia
-----END PGP SIGNATURE-----
--- End Message ---