--- /dev/null
+--- /etc/init.d/functions~ 2018-09-07 16:57:25.000000000 +0300
++++ /etc/init.d/functions 2018-09-07 17:02:41.443552246 +0300
+@@ -884,12 +883,19 @@
+ # 3. kill with KILL, wait $waitretry
+ retry="--retry ${sig#-}/${delay}/${sig#-}/${waittime}/KILL/${waitretry}"
+ fi
+- /sbin/start-stop-daemon -q --stop \
+- $retry \
+- ${waitname:+--name $waitname} \
+- -s ${sig#-} \
+- ${pidfile:+--pidfile $pidfile}
+- result=$?
++
++ # expand if pidfile has multiple pids
++ result=0
++ local pid
++
++ for pid in $(cat $pidfile); do
++ /sbin/start-stop-daemon -q --stop \
++ $retry \
++ ${waitname:+--name $waitname} \
++ -s ${sig#-} \
++ --pid $pid || result=$?
++ done
++
+ if [ "$result" -eq 0 ]; then
+ ok
+ else
Source1: rc-local.service
Source2: sys-chroots.service
Source3: %{name}.tmpfiles
+Patch0: 95229.patch
URL: http://svn.pld-linux.org/trac/svn/wiki/packages/rc-scripts
BuildRequires: autoconf
BuildRequires: automake
%prep
%setup -q
+%patch0 -p3 -d lib
# hack, currently this results in errno@@GLIBC_PRIVATE symbol in ppp-watch:
#GLIB_LIBS="-Wl,-static `$PKG_CONFIG --libs --static glib-2.0` -Wl,-Bdynamic"