Commit 3355bd56 authored by Dietmar Maurer's avatar Dietmar Maurer

use service command to stop old daemons

parent 2d0da461
...@@ -12,10 +12,9 @@ case "$1" in ...@@ -12,10 +12,9 @@ case "$1" in
echo "Detected old pve-manager version - using stop/start to restart daemons" echo "Detected old pve-manager version - using stop/start to restart daemons"
for i in ${DAEMONS}; do for i in ${DAEMONS}; do
if [ -e "/usr/bin/$i" ]; then if [ -e "/usr/bin/$i" ]; then
/usr/bin/$i stop service $i stop
fi fi
done done
sleep 2 sleep 2
fi fi
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment