Webmin [Solved]

Discussions Regarding Software

Moderator: Moderators

Post Reply
B3rtm3n
Growing Hen
Posts: 168
Joined: Fri Apr 13, 2012 2:53

Webmin [Solved]

Post by B3rtm3n » Thu Apr 24, 2014 15:20

I am unable to use webmin since systemd got implemented in Sabayon.

I would like to know if anyone got webmin running because I tried everying and nothing works:

Code: Select all

# /etc/init.d/webmin start|stop|restart
bash: stop: command not found
bash: restart: command not found
 * WARNING: webmin is already starting
# rc-update add webmin default
 * rc-update: webmin already installed in runlevel `default'; skipping
# /etc/init.d/webmin start
 * WARNING: webmin is already starting
# /etc/init.d/webmin stop
 * ERROR: webmin stopped by something else
# /etc/init.d/webmin restart
 * WARNING: webmin is already starting
# /etc/init.d/webmin status
 * You are attempting to run an openrc service on a
 * system which openrc did not boot.
 * You may be inside a chroot or you may have used
 * another initialization system to boot this system.
 * In this situation, you will get unpredictable results!
 * If you really want to do this, issue the following command:
 * touch /run/openrc/softlevel
Last edited by B3rtm3n on Fri Apr 25, 2014 17:14, edited 2 times in total.

Stupot
Sagely Hen
Posts: 1678
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: Webmin

Post by Stupot » Thu Apr 24, 2014 20:12

/etc/init.d/ was the OpenRC way of starting things. You aren't running OpenRC. It told you in that message:
* You are attempting to run an openrc service on a
* system which openrc did not boot.
Try the systemd way:

Code: Select all

systemctl start webmin.service
To get it run on boot:

Code: Select all

systemctl enable webmin.service

B3rtm3n
Growing Hen
Posts: 168
Joined: Fri Apr 13, 2012 2:53

Re: Webmin

Post by B3rtm3n » Thu Apr 24, 2014 21:07

Thanks for your help!

However when I do:

Code: Select all

systemctl start webmin.service
I get the message:

Code: Select all

Failed to issue method call: Unit webmin.service failed to load: No such file or directory.

User avatar
sabayonino
Sagely Hen
Posts: 3267
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Webmin

Post by sabayonino » Fri Apr 25, 2014 0:09

webmin doesn't provide any .service for systemd but you can try this :

https://forums.gentoo.org/viewtopic-p-7479434.html


hope it helps you
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

Stupot
Sagely Hen
Posts: 1678
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: Webmin

Post by Stupot » Fri Apr 25, 2014 0:26

A bug should filed on bugs.gentoo.org to have that included. You could file a bug here and it would make it's way upstream as well.

But in the meantime, follow the post above and use that. Should be simple enough.

B3rtm3n
Growing Hen
Posts: 168
Joined: Fri Apr 13, 2012 2:53

Re: Webmin

Post by B3rtm3n » Fri Apr 25, 2014 17:13

Thanks, I already found that thread before posting but did not understood what to do at the time.

You have to place a textfile called webmin.service in /etc/systemd/system/ with the text:

Code: Select all

[Unit] 
Description=Webmin Admin Tool 
Requires=local-fs.target 
After=basic.target 
Before=smartd.service 
DefaultDependencies=no 
Conflicts=shutdown.target 

[Service] 
Type=oneshot 
ExecStart=/usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf 
RemainAfterExit=yes 
PrivateTmp=true 

[Install] 
WantedBy=multi-user.target
and as sudo

Code: Select all

systemctl start webmin.service
A bug report was filed at bugs.sabayon on 24/8/2013 and I have waited since but this solved the issue indeed

Post Reply