mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
17 lines
442 B
Plaintext
17 lines
442 B
Plaintext
[Unit]
|
|
Description=Webmin server daemon
|
|
|
|
[Service]
|
|
Environment="PERLLIB=WEBMIN_LIBDIR"
|
|
ExecStart=WEBMIN_LIBDIR/miniserv.pl WEBMIN_CONFIG/miniserv.conf
|
|
ExecStop=/usr/bin/kill $MAINPID
|
|
ExecReload=/bin/bash -c '/usr/bin/kill -HUP $MAINPID && while /usr/bin/kill -0 $MAINPID >/dev/null 2>&1 ; do /bin/sleep 0.5 ; done'
|
|
PIDFile=WEBMIN_VAR/miniserv.pid
|
|
Type=forking
|
|
Restart=always
|
|
RestartSec=2s
|
|
TimeoutSec=15s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|