However, I can't get it to start as a systemd service using this service file;
Code: Select all
# Webmin can't be started by systemd until the service section is updated.
# To activate the service, copy this file to /etc/systemd/system/ (on Fedora)
# Then run:
# # systemctl start webmin.service
# Check /var/log/messages output.
# To automatically start webmin at boot, run:
# # systemctl enable webmin.service
[Unit]
Description=Webmin Server
After=network.target
[Service]
# Enter the absolute path to the pyTivo executable.
ExecStart=/etc/webmin/start
# Enter a username that has read/write privs on the shared directories
# User=nobody
# Enter the absolute path to your pytivo installation
WorkingDirectory=/etc/webmin/
StandardOutput=syslog
[Install]
WantedBy=multi-user.target
Code: Select all
root@lenny:/var/tmp# systemctl status webmin
? webmin.service - Webmin Server
Loaded: loaded (/lib/systemd/system/webmin.service; enabled)
Active: inactive (dead) since Thu 2016-05-05 21:07:57 MDT; 8min ago
Process: 10742 ExecStart=/etc/webmin/start (code=exited, status=0/SUCCESS)
Main PID: 10742 (code=exited, status=0/SUCCESS)
May 05 21:07:55 lenny start[10742]: Starting Webmin server in /usr/share/webmin
May 05 21:07:56 lenny perl[10742]: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= ...er=root
May 05 21:07:56 lenny perl[10742]: pam_winbind(webmin:auth): getting password (0x00000388)
May 05 21:07:56 lenny perl[10742]: pam_winbind(webmin:auth): pam_get_item returned a password
May 05 21:07:56 lenny perl[10742]: pam_winbind(webmin:auth): request wbcLogonUser failed: WBC_ERR_AUTH_ERROR, PAM er...ch user
May 05 21:07:57 lenny webmin[10742]: Webmin starting
May 05 21:07:57 lenny start[10742]: Pre-loaded WebminCore
Hint: Some lines were ellipsized, use -l to show in full.