MT#8773 don't try to stop a non installed service

Change-Id: Ib618571cb1c1dea22bbedbc18c2fd00b6d75b40c
changes/26/126/5
Victor Seva 11 years ago
parent 88995b6c92
commit 6a1a2ad918

@ -1611,11 +1611,15 @@ EOF
rsyslog \
sems ; \
do
chroot $TARGET /etc/init.d/$service stop || true
if [ -f $TARGET/etc/init.d/$service ] ; then
chroot $TARGET /etc/init.d/$service stop || true
fi
done
# prosody's init script requires mounted /proc
grml-chroot $TARGET /etc/init.d/prosody stop || true
if [ -f $TARGET/etc/init.d/prosody ] ; then
# prosody's init script requires mounted /proc
grml-chroot $TARGET /etc/init.d/prosody stop || true
fi
# nuke files
for i in $(find "$TARGET/var/log" -type f -size +0 -not -name \*.ini 2>/dev/null); do

Loading…
Cancel
Save