[Unit]
Description=Usermin server daemon

[Service]
Environment="PERLLIB=/opt/usermin"
ExecStart=/opt/usermin/miniserv.pl /etc/usermin/miniserv.conf
ExecStop=/usr/bin/kill $MAINPID
ExecReload=/usr/bin/kill -HUP $MAINPID
PIDFile=/run/usermin.pid
Type=forking
Restart=always
RestartSec=2s
TimeoutSec=15s

[Install]
WantedBy=multi-user.target
