summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/runscript.sh')
-rwxr-xr-xsbin/runscript.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/runscript.sh b/sbin/runscript.sh
index 2206f7a..deafe4c 100755
--- a/sbin/runscript.sh
+++ b/sbin/runscript.sh
@@ -591,7 +591,7 @@ for arg in $* ; do
rm -rf "${svcdir}/snapshot/$$"
mkdir -p "${svcdir}/snapshot/$$"
cp -pP "${svcdir}"/started/* "${svcdir}"/inactive/* \
- "${svcdir}/snapshot/$$/"
+ "${svcdir}/snapshot/$$/" 2>/dev/null
rm -f "${svcdir}/snapshot/$$/${SVCNAME}"
fi
@@ -637,7 +637,7 @@ for arg in $* ; do
rm -rf "${svcdir}/snapshot/$$"
mkdir -p "${svcdir}/snapshot/$$"
cp -pP "${svcdir}"/started/* "${svcdir}"/inactive/* \
- "${svcdir}/snapshot/$$/"
+ "${svcdir}/snapshot/$$/" 2>/dev/null
rm -f "${svcdir}/snapshot/$$/${SVCNAME}"
# Simple way to try and detect if the service use svc_{start,stop}