Page 1 of 1

Webmin [Solved]

PostPosted: Thu Apr 24, 2014 15:20
by B3rtm3n
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

Re: Webmin

PostPosted: Thu Apr 24, 2014 20:12
by Stupot
/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

Re: Webmin

PostPosted: Thu Apr 24, 2014 21:07
by B3rtm3n
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.

Re: Webmin

PostPosted: Fri Apr 25, 2014 0:09
by sabayonino
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

Re: Webmin

PostPosted: Fri Apr 25, 2014 0:26
by Stupot
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.

Re: Webmin

PostPosted: Fri Apr 25, 2014 17:13
by B3rtm3n
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