Webmin doesn't start automatically on CentOS 6.3

7 posts / 0 new
Last post
#1 Sat, 07/14/2012 - 00:53
pasaporte

Webmin doesn't start automatically on CentOS 6.3

I need some help troubleshooting my CentOS server. I installed it originally as 6.2 fresh install and run the virtualmin script. Everything installed properly so I thought. Now I realised 3 system services do not run on reboot, such as webmin, usermin and openfire. If I log on terminal and run them as "service webmin start" the services run fine. Could someone please help me sorting this out. I would like them to start automatically on reboot. Thank you in advance.

Sat, 07/14/2012 - 14:43
andreychek

Howdy,

If you go into Webmin -> System -> Bootup and Shutdown, are Webmin and Usermin listed as starting at bootup?

If not, you could set them to start up bootup at that screen.

-Eric

Sat, 07/14/2012 - 18:48
pasaporte

Ty for your reply. All of them are listed to boot at startup , but they don't , they show up if I manually start them. By the way it shows that the Boot system : Upstart . In case that may be of help. Has anyone working webmin with CentOS 6.3?, does it boot at startup?

Sun, 07/15/2012 - 08:58
ronald
ronald's picture

I have a centos 6.3 with working webmin at boot.

the startup script is as follows:

 #!/bin/sh
# chkconfig: 235 99 10
# description: Start or stop the Webmin server
#
### BEGIN INIT INFO
# Provides: webmin
# Required-Start: $network $syslog
# Required-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: Start or stop the Webmin server
### END INIT INFO
 
start=/etc/webmin/start
stop=/etc/webmin/stop
lockfile=/var/lock/subsys/webmin
confFile=/etc/webmin/miniserv.conf
pidFile=/var/webmin/miniserv.pid
name='Webmin'
 
case "$1" in
'start')
    $start >/dev/null 2>&1 </dev/null
    RETVAL=$?
    if [ "$RETVAL" = "0" ]; then
        touch $lockfile >/dev/null 2>&1
    fi
    ;;
'stop')
    $stop
    RETVAL=$?
    if [ "$RETVAL" = "0" ]; then
        rm -f $lockfile
    fi
    pidfile=`grep "^pidfile=" $confFile | sed -e 's/pidfile=//g'`
    if [ "$pidfile" = "" ]; then
        pidfile=$pidFile
    fi
    rm -f $pidfile
    ;;
'status')
    pidfile=`grep "^pidfile=" $confFile | sed -e 's/pidfile=//g'`
    if [ "$pidfile" = "" ]; then
        pidfile=$pidFile
    fi
    if [ -s $pidfile ]; then
        pid=`cat $pidfile`
        kill -0 $pid >/dev/null 2>&1
        if [ "$?" = "0" ]; then
            echo "$name (pid $pid) is running"
            RETVAL=0
        else
            echo "$name is stopped"
            RETVAL=1
        fi
    else
        echo "$name is stopped"
        RETVAL=1
    fi
    ;;
'restart')
    $stop ; $start
    RETVAL=$?
    ;;
*)
    echo "Usage: $0 { start | stop | restart }"
    RETVAL=1
    ;;
esac
exit $RETVAL
Thu, 07/19/2012 - 21:27
pasaporte

This one is mine, I think you posted yours as markdown text and not filtered HTML so the bit in the pid file shows up with funny symbols. They seem to be the same, as I said chkconfig shows the right parameters and if I start it manually either with /etc/init.d/webmin start or service webmin start , both methods work fine. Could someone please lead me somewhere where I could maybe see logs regarding the failure on reboot. Thank you.

#!/bin/sh
# chkconfig: 235 99 10
# description: Start or stop the Webmin server
#
### BEGIN INIT INFO
# Provides: webmin
# Required-Start: $network $syslog
# Required-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: Start or stop the Webmin server
### END INIT INFO

start=/etc/webmin/start
stop=/etc/webmin/stop
lockfile=/var/lock/subsys/webmin
confFile=/etc/webmin/miniserv.conf
pidFile=/var/webmin/miniserv.pid
name='Webmin'

case "$1" in
'start')
$start >/dev/null 2>&1 /dev/null 2>&1
fi
;;
'stop')
$stop
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
rm -f $lockfile
fi
pidfile=`grep "^pidfile=" $confFile | sed -e 's/pidfile=//g'`
if [ "$pidfile" = "" ]; then
pidfile=$pidFile
fi
rm -f $pidfile
;;
'status')
pidfile=`grep "^pidfile=" $confFile | sed -e 's/pidfile=//g'`
if [ "$pidfile" = "" ]; then
pidfile=$pidFile
fi
if [ -s $pidfile ]; then
pid=`cat $pidfile`
kill -0 $pid >/dev/null 2>&1
if [ "$?" = "0" ]; then
echo "$name (pid $pid) is running"
RETVAL=0
else
echo "$name is stopped"
RETVAL=1
fi
else
echo "$name is stopped"
RETVAL=1
fi
;;
'restart')
$stop ; $start
RETVAL=$?
;;
*)
echo "Usage: $0 { start | stop | restart }"
RETVAL=1
;;
esac
exit $RETVAL

Mon, 08/06/2012 - 12:26
aplima

Have the same problem. CentOS 6.2 Webmin last version

After server reboot: [root@mail ~]# date Seg Ago 6 18:21:03 WEST 2012 [root@mail ~]# service webmin status Webmin is stopped

It is marked to start on boot using Webmin -> System -> Boot up and shutdown chkconfig on 2 3 4 5

I tried a fresh install today to see if I have missed or failed something. Still not working.

Thu, 11/29/2012 - 11:09
new456

Any update on this? I'm also encountering this issue...

Topic locked