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

  • timdubi
  • 11/03/11
  • Offline
Posted: Thu, 2011-11-03 02:45

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


I've got it working! I

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

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


The sake of completeness:

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

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=<code>grep &quot;^pidfile=&quot; /etc/webmin/miniserv.conf | sed -e &#039;s/pidfile=//g&#039;</code>
  if [ -s $pidfile ]; then
       pid=<code>cat $pidfile</code>
     kill -0 $pid &gt;/dev/null 2&gt;&amp;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


Thanks for posting that!

  • andreychek
  • 01/05/09
  • Offline
  • Thu, 2011-11-03 10:23

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

-Eric