Hi. I have several Ubuntu Dapper (6.06) servers, and I
use Webmin 1.300 to administer them. I installed Webmin
from webmin.com and not from the repositories. Webmin
is configured as if it is running on a Debian 3.0
system. All works great.
I have set up a test machine using Edgy Eft,(6.10) with
all current updates done at least once a day.
Ever since Edgy moved to upstart instead of sysvinit, I
have to manually start Webmin, which is a real pain. On
all of my other machines I made use of the question at
the bottom of the webmin config page which asks if you
want Webmin to start at system startup. This writes
some files to /etc/init.d/rc.d/webmin. Despite cloning
this directory structure, the Webmin auto-start
function no longer works at all using upstart.
I know this falls into the netherworld - is it Webmin's
fault or upstart? Personally I believe that upstart
ought to completely emulate sysvinit behavior for
something like this, and I am pretty sure that others
will have this problem too.
Is there a HOWTO I can follow to make this work? - or
better, can something be done to assure upstart
compatibility with old sysvinit behavior?
Logged In: NO
In fact, the entire 'bootup and shutdown' menu is empty.
Obviously this menu is keyed to the SysVInit start up script
system. Since Edgy will ship with Upstart, this will be a
giant issue for somebody. btw my email address is mallard
(yes, mallard) at quacken (ahem) dot com. Thx.
Logged In: YES
user_id=129364
I'm not familiar with upstart actually .. which would be why
Webmin doesn't support it. Does it have a concept of bootup
'actions' like the SysV init.d system does? If so, where are
they located, and how are they activated?
Fixing this is not simple, as it is more of a feature
request than a bug ..
Logged In: NO
jcameron, thanks for the response. Yes, it is sort of a
feature, and completely a PITA to support, I am sure! Here
is a pretty good blog article that describes the process and
the decisions taken on the road to upstart:
http://www.netsplit.com/blog/articles/2006/08/26/upstart-in-universe
At the very least the Webmin maintainer could probably lean
on the Ubuntu folks to address this issue. You will have
more throw weight than us mere civilians.
/mallard
Logged In: YES
user_id=129364
Thanks for that page - I will download Edgy and update
Webmin to support upstart when I get the chance.
By the way, is upstart the default out-of-the-box bootup
system on Edgy, or something that users have to install
instead of sysvinit?
Logged In: NO
I believe that upstart will be the default. I must say, it
certainly does speed up the time it takes to boot up!
Logged In: NO
BTW I posted a link to this thread on the Ubuntu Edgy
development forum here
http://ubuntuforums.org/showthread.php?t=278594 .
Logged In: NO
From the ubuntu forum, a reply!
http://ubuntuforums.org/showthread.php?t=278594
Webmin my easy way to solve it in Edgy.
Edit /etc/rc.local.
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any
other
# value on error.
#
# In order to enable or disable this script just change the
execution
# bits.
#
# By default this script does nothing.
/usr/local/webmin/webmin-init start
exit 0
#
Of course this does not let Webmin manage all the startup
services, though.
/Quackking
Logged In: YES
user_id=16729
Hi there,
I'm the author of upstart, hopefully I can help.
In Edgy, upstart has only replaced the sysvinit /sbin/init
daemon -- not the actual init scripts themselves. We still
use sysv-rc to manage the boot, which means that
/etc/init.d, /etc/rcX.d, etc. all still work as usual.
From the bug report, it looks like the user has installed
webmin with a /usr/local prefix -- could it have installed
its init scripts in /usr/local/etc and also be looking there?
For feisty, we will be replacing the default init scripts
with upstart jobs -- I'm more than happy to help out and
provide any information you need to create webmin support
for them. The general method is that jobs are files in
/etc/event.d which specify when they need to be run and what
to do when they are.
If you need any more information, please e-mail me
(scott@ubuntu.com) or grab me on FreeNode IRC (Keybuk)
Thanks
Logged In: YES
user_id=129364
Originator: NO
Finally tracked this down - the simple cause is that Ubuntu has no /etc/inittab file, so Webmin couldn't work out the runlevel!
When I changed the code to use the runlevel command instead, it works fine..
This fix will go into the 1.310 release of Webmin.
Logged In: NO
Thanks for drilling into this! I look forward to 1.310!
/"Quackking"
Logged In: NO
Hi, Keybuk, just updated my Edgy webmin-controlled box to 1.310 and still nothing appears in the bootup/shutdown menu. I can now see a button that lets me start Webmin at boot time, but I don't know if it actually works! Let me know if I am doing anything wrong webmin-wise - I did let Webmin detect the environment, and it changed internal code from debian 3.0 to debian 3.1, but no help on the runlevel stuff.
Thanks, 'Quackking'
Logged In: YES
user_id=129364
Originator: NO
Does your system have a 'runlevel' command, if so what does it output when run?
Also, are you not seeing any bootup actions at all, or are they appearing but marked disabled?
Logged In: NO
Yes, 'sudo runlevel' returns "N 2".
There are no bootup actions at all. I see buttons letting me create new ones, though. This is a standard, fresh, clean disk install of Edgy. I used the Edgy Alternate (network) install image.
Logged In: YES
user_id=129364
Originator: NO
I can think of two things to check :
1) If you click on the Module Config link in the top-left corner, is the 'Directory containing master init scripts' set to /etc/init.d ?
2) Does /etc/init.d actually exist and contain files on your system?
Logged In: NO
You got it! the default had everything one level too deep, in /etc/rc.d/ - whereas everything is actually in /etc/ . Maybe the default paths could be changed to agree with this if Ubuntu 6.10 is detected. I have just downloaded a Feisty Faun (Ubuntu 7.04) test disk and will see if it is set up the same way. Thanks!
Logged In: YES
user_id=129364
Originator: NO
The default for new Webmin installs on Ubuntu is /etc/init.d for the init scripts, and /etc/rc*.d for the link directories. Is that correct?
Logged In: NO
Yes, that path works for me. Thanks for all your help here!
/quackking