Webmin [Solved]

Discussions Regarding Software

Moderator: Moderators

Webmin [Solved]

Postby 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.
B3rtm3n
Growing Hen
 
Posts: 168
Joined: Fri Apr 13, 2012 2:53

Re: Webmin

Postby 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
Stupot
Sagely Hen
 
Posts: 1537
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: Webmin

Postby 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.
B3rtm3n
Growing Hen
 
Posts: 168
Joined: Fri Apr 13, 2012 2:53


Re: Webmin

Postby 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.
Stupot
Sagely Hen
 
Posts: 1537
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: Webmin

Postby 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
B3rtm3n
Growing Hen
 
Posts: 168
Joined: Fri Apr 13, 2012 2:53


Return to Software in General

Who is online

Users browsing this forum: No registered users and 4 guests