Skip to contentSkip to conversation

New: Fix init script

Buildroot bugzilla at busybox.net 1 participant 4 messages Dec 18, 2018 – Dec 21, 2018

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 11566
Summary: Fix init script
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: yangtze31 at gmail.com
CC: buildroot at uclibc.org
Target Milestone: ---

Hello,

The init script restart and stop don't work.

Thanks,
Bin Zhang

S99shairport-sync 2018-12-18 18:47:30.360227688 +0100 renamed from S99shairport-sync.orig 2018-12-18 18:46:22.096225172 +0100 +0 -1
@@ -6,16 +6,17 @@
 case "$1" in
     start)
        printf "Starting shairport-sync: "
-       start-stop-daemon -S -q -p /var/run/shairport-sync.pid --exec

/usr/bin/shairport-sync -- $OPTIONS
+ start-stop-daemon -S -q --exec /usr/bin/shairport-sync -- $OPTIONS

        [ $? = 0 ] && echo "OK" || echo "FAIL"
        ;;
     stop)
        printf "Stopping shairport-sync: "
-       start-stop-daemon -K -q -p /var/run/shairport-sync.pid
+       start-stop-daemon -K -q -p /var/run/shairport-sync/shairport-sync.pid
        [ $? = 0 ] && echo "OK" || echo "FAIL"
        ;;
     restart)
        $0 stop
+       sleep 1
        $0 start
        ;;
     *)
Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 11566] Fix init script

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

Carlos Santos <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
           Assignee|unassigned at buildroot.uclibc |casantos at datacom.com.br
                   |.org                        |

--- Comment #1 from Carlos Santos <[email protected]> --- (In reply to Bin Zhang from comment #0)

Thanks for reporting this bug. A patch to fix it has been submitted:

    https://patchwork.ozlabs.org/patch/1017084/
Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.