Stapled cannot be started using systemctl
stapled starts fine when invoked from the command line as root, either --no-daemon or regular. When started however using systemctl starting fails:
Mar 30 12:04:06 testproxy.greenhost.nl systemd[1]: Starting Stapled - OCSP staple renewer...
-- Subject: Unit stapled.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit stapled.service has begun starting up.
Mar 30 12:04:06 testproxy.greenhost.nl systemd[1]: Started Stapled - OCSP staple renewer.
-- Subject: Unit stapled.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit stapled.service has finished starting up.
--
-- The start-up result is done.
Mar 30 12:04:07 testproxy.greenhost.nl stapled[4493]: Traceback (most recent call last):
Mar 30 12:04:07 testproxy.greenhost.nl stapled[4493]: File "/usr/bin/stapled", line 11, in <module>
Mar 30 12:04:07 testproxy.greenhost.nl stapled[4493]: load_entry_point('stapled==0.6', 'console_scripts', 'stapled')()
Mar 30 12:04:07 testproxy.greenhost.nl stapled[4493]: File "/usr/lib/python3/dist-packages/stapled/__main__.py", line 326, in init
Mar 30 12:04:07 testproxy.greenhost.nl stapled[4493]: args.haproxy_config
Mar 30 12:04:07 testproxy.greenhost.nl stapled[4493]: File "/usr/lib/python3/dist-packages/stapled/util/haproxy.py", line 224, in parse_haproxy_config
Mar 30 12:04:07 testproxy.greenhost.nl stapled[4493]: return HAProxyParser(conf_files).parse()
Mar 30 12:04:07 testproxy.greenhost.nl stapled[4493]: File "/usr/lib/python3/dist-packages/stapled/util/haproxy.py", line 102, in parse
Mar 30 12:04:07 testproxy.greenhost.nl stapled[4493]: self.cert_paths, self.socket_paths = self._parse()
Mar 30 12:04:07 testproxy.greenhost.nl stapled[4493]: File "/usr/lib/python3/dist-packages/stapled/util/haproxy.py", line 116, in _parse
Mar 30 12:04:07 testproxy.greenhost.nl stapled[4493]: relevant_lines = self._parse_relevant_lines(conf_file)
Mar 30 12:04:07 testproxy.greenhost.nl stapled[4493]: File "/usr/lib/python3/dist-packages/stapled/util/haproxy.py", line 149, in _parse_relevant_lines
Mar 30 12:04:07 testproxy.greenhost.nl stapled[4493]: with open(conf_file_path, 'r') as config:
Mar 30 12:04:07 testproxy.greenhost.nl stapled[4493]: FileNotFoundError: [Errno 2] No such file or directory: 'haproxy.le-213.108.104.96.cfg'
Mar 30 12:04:07 testproxy.greenhost.nl systemd[1]: stapled.service: main process exited, code=exited, status=1/FAILURE
Mar 30 12:04:07 testproxy.greenhost.nl systemd[1]: Unit stapled.service entered failed state.