Upgrading Webmin / Virtualmin from 1.560 to 1.570, but the service doesn't start anymore

4 posts / 0 new
Last post
#1 Thu, 11/03/2011 - 02:45
timdubi

Upgrading Webmin / Virtualmin from 1.560 to 1.570, but the service doesn't start anymore

Hi!

I am writing from Germany, because i get an Error after an Upgrade from 1.560 to 1.570. No service is running. I tried to start it manually, but i get the following errors

root@stream1:/etc/init.d# service webmin start
/etc/init.d/webmin: 14: webmin: not found
/etc/init.d/webmin: 15: webmin: not found

root@stream1:/etc/init.d# /etc/init.d/webmin start
/etc/init.d/webmin: 14: webmin: not found
/etc/init.d/webmin: 15: webmin: not found

Prior to the update everything went well, and i don't know why this failed now. Can you give me an hint?

THX in advance, Thomas

Thu, 11/03/2011 - 03:22
timdubi

I've got it working! I noticed that the upstart script was different from the older version, so i downloaded the older one and upgraded it.

Problem solved! THX Thomas

Thu, 11/03/2011 - 03:25
timdubi

The sake of completeness: Here ist the script that i have taken:

#!/bin/sh
# Start/stop Webmin

case "$1" in
'start')
/etc/webmin/start >/dev/null 2>&1 </dev/null
RETVAL=$?
;;
'stop')
/etc/webmin/stop
RETVAL=$?
;;
'status')
pidfile=`grep "^pidfile=" /etc/webmin/miniserv.conf | sed -e 's/pidfile=//g'`
if [ -s $pidfile ]; then
pid=`cat $pidfile`
kill -0 $pid >/dev/null 2>&1
if [ "$?" = "0" ]; then
echo "webmin (pid $pid) is running"
RETVAL=0
else
echo "webmin is stopped"
RETVAL=1
fi
else
echo "webmin is stopped"
RETVAL=1
fi
;;
'restart')
/etc/webmin/stop ; /etc/webmin/start
RETVAL=$?
;;
*)
echo "Usage: $0 { start | stop }"
RETVAL=1
;;
esac
exit $RETVAL
Thu, 11/03/2011 - 10:23
andreychek

Thanks for posting that! Jamie is working on a fix for this issue in future versions of Webmin and Virtualmin.

-Eric

Topic locked