On Mon, Oct 07, 2024 at 04:01:31AM +0200, Marco d'Itri wrote: > In lighttpd.service replace ExecReload with: > > ExecReload=/bin/sh -c '/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf > && /bin/kill -USR1 $MAINPID'
Sigh. Some say the 'd' in systemd stands for 'demented'. I think this solution is to repeat the ExecStartPre command, as ExecReload. ExecReload supports multiple commands, so I think this is cleaner: ExecReload=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf ExecReload=/bin/kill -USR1 $MAINPID