Skip to contentSkip to conversation

New: [patch] Fix S01logging pidfile handling

Buildroot New bugzilla at busybox.net 3 participants 7 messages Mar 20, 2013 – May 26, 2013

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=6128

Summary: [patch] Fix S01logging pidfile handling
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: arved at arved.at
CC: buildroot at uclibc.org
Estimated Hours: 0.0

There are two issues with S01logging

1. The initscript relies on the daemon creating a Pidfile, but the relevant option has been disabled in the busybox-1.20.x-config.
2. The name contains a typo syslogd vs. syslog.

This is fixed with the attached patch.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

PATCH 1/1 Fix S01logging pidfile handling

https://bugs.busybox.net/show_bug.cgi?id=6128

--- Comment #1 from Tilman Keskin?z <[email protected]> 2013-03-20 14:00:49 UTC --- Created attachment 4820
--> https://bugs.busybox.net/attachment.cgi?id=4820
Fix syslog initscript

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

PATCH 1/1 Fix S01logging pidfile handling

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=6128

--- Comment #2 from Thomas Petazzoni <[email protected]> 2013-03-20 14:30:20 UTC --- Thanks. Can you send this as two proper separate patches on the Buildroot
mailing list?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

PATCH 1/1 Fix S01logging pidfile handling

In reply to bugzilla at busybox.net
Quoted 6 lines · bugzilla

https://bugs.busybox.net/show_bug.cgi?id=6128

--- Comment #2 from Thomas Petazzoni <[email protected]> 2013-03-20 14:30:20 UTC --- Thanks. Can you send this as two proper separate patches on the Buildroot
mailing list?

-------------- next part --------------

S01logging renamed from S01logging.orig +2 -2
@@ -6,13 +6,13 @@
 case "$1" in
   start)
 	echo -n "Starting logging: "
-	start-stop-daemon -S -q -p /var/run/syslog.pid --exec /sbin/syslogd -- -m 0
+	start-stop-daemon -S -q -p /var/run/syslogd.pid --exec /sbin/syslogd -- -m 0
 	start-stop-daemon -S -q -p /var/run/klogd.pid --exec /sbin/klogd
 	echo "OK"
 	;;
   stop)
 	echo -n "Stopping logging: "
-	start-stop-daemon -K -q -p /var/run/syslog.pid
+	start-stop-daemon -K -q -p /var/run/syslogd.pid
 	start-stop-daemon -K -q -p /var/run/klogd.pid
 	echo "OK"
 	;;

-------------- next part --------------

busybox-1.20.x.config renamed from busybox-1.20.x.config.orig +1 -1
@@ -41,7 +41,7 @@
 CONFIG_FEATURE_CLEAN_UP=y
 CONFIG_FEATURE_UTMP=y
 CONFIG_FEATURE_WTMP=y
-# CONFIG_FEATURE_PIDFILE is not set
+CONFIG_FEATURE_PIDFILE=y
 CONFIG_FEATURE_SUID=y
 # CONFIG_FEATURE_SUID_CONFIG is not set
 # CONFIG_FEATURE_SUID_CONFIG_QUIET is not set

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130325/3d5bb88f/attachment-0001.asc>

#4 lore raw

PATCH 1/1 Fix S01logging pidfile handling

Dear Tilman Keskin?z,

Quoted 7 lines · Tilman Keskin?z
Quoted 6 lines · bugzilla

https://bugs.busybox.net/show_bug.cgi?id=6128

--- Comment #2 from Thomas Petazzoni <[email protected]> 2013-03-20 14:30:20 UTC --- Thanks. Can you send this as two proper separate patches on the Buildroot mailing list?

Thanks, but unfortunately, those patches can't be applied as is. They should be Git patches, with a commit log that explains why the patch is needed and what it is doing, a Signed-off-by line, and sent inline (and not as attachements) using git send-email.

Could you do this?

Thanks a lot for your contribution!

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#6 lore raw

PATCH 1/1 Fix S01logging pidfile handling

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=6128

Samuel Martin <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Samuel Martin <[email protected]> 2013-05-26 11:36:07 UTC --- The S01logging script typo has been merged.

The pidfile management remains deferred to start-stop-daemon, so the change in the busybox configs is not needed; though any user can enable it.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.