[Unit]
Description=Webmin server daemon
Wants=network-online.target
After=network.target network-online.target

[Service]
Environment="PERLLIB=WEBMIN_LIBDIR"
ExecStart=WEBMIN_LIBDIR/miniserv.pl WEBMIN_CONFIG/miniserv.conf
ExecStop=WEBMIN_KILLCMD $MAINPID
ExecReload=WEBMIN_KILLCMD -HUP $MAINPID
PIDFile=WEBMIN_VAR/miniserv.pid
Type=forking
Restart=always
RestartSec=2s
TimeoutSec=15s
TimeoutStopSec=300s

[Install]
WantedBy=multi-user.target
