[systemd-devel] ExecStartPre checking conf

Olaf van der Spek ml at vdspek.org
Sun May 19 09:45:54 UTC 2019


Hi,

ExecStartPre is sometimes used to check the configuration. Does this make sense?
It seems this causes a lot of code to run twice, as the configuration
is checked on the real invocation anyway.

[Unit]
Description=Lighttpd Daemon
After=network-online.target

[Service]
Type=simple
PIDFile=/var/run/lighttpd.pid
ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
ExecReload=/bin/kill -USR1 $MAINPID
Restart=on-failure

[Install]
WantedBy=multi-user.target

-- 
Olaf


More information about the systemd-devel mailing list