Submitted by yngens on Sat, 08/19/2017 - 23:14
If you try the old-type Fedora command service webmin restart
then it works fine:
service webmin restart
Stopping Webmin server in /usr/libexec/webmin
Starting Webmin server in /usr/libexec/webmin
however, if you use new systemctl way then the systemctl restart webmin
command gives:
Job for webmin.service failed because the control process exited with error code. See "systemctl status webmin.service" and "journalctl -xe" for details.
And despite Webmin is running ok, the systemctl status webmin.service
gives:
systemctl status webmin.service
● webmin.service - LSB: Start or stop the Webmin server
Loaded: loaded (/etc/rc.d/init.d/webmin; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2017-08-20 04:10:17 UTC; 31s ago
Docs: man:systemd-sysv-generator(8)
Process: 22671 ExecStart=/etc/rc.d/init.d/webmin start (code=exited, status=1/FAILURE)
Aug 20 04:10:05 ns1.domain.tld systemd[1]: Starting LSB: Start or stop the Webmin server...
Aug 20 04:10:05 ns1.domain.tld perl[22674]: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root
Aug 20 04:10:07 ns1.domain.tld webmin[22674]: Webmin starting
Aug 20 04:10:17 ns1.domain.tld systemd[1]: webmin.service: control process exited, code=exited status=1
Aug 20 04:10:17 ns1.domain.tld systemd[1]: Failed to start LSB: Start or stop the Webmin server.
Aug 20 04:10:17 ns1.domain.tld systemd[1]: Unit webmin.service entered failed state.
Aug 20 04:10:17 ns1.domain.tld systemd[1]: webmin.service failed.
Please make start/stop/restart Webmin commands consistent with the new standards for Fedora-based systems.
Status:
Closed (works as designed)
Comments
Submitted by JamieCameron on Sun, 08/20/2017 - 11:55 Comment #1
Which exact Fedora version are you running there?
Submitted by yngens on Sun, 08/20/2017 - 19:39 Comment #2
It's CentOS 7.x. By the "old-type Fedora command" I meant the "service name command" format. This is happening on any CentOS 7.x systems: you can't use the new "systemctl comand name" format for "webmin"
Submitted by JamieCameron on Mon, 08/21/2017 - 01:16 Comment #3
I just tested this on a CentOS 7 system with Webmin, and the
systemctl
command worked fine.How was Webmin installed on your machine?
Submitted by yngens on Mon, 08/21/2017 - 21:20 Comment #4
Turns out Webmin on that particular machine was installed from a repository of another software and was pretty old.