diff --git a/docs/admin-guide/certificates.md b/docs/admin-guide/certificates.md index 2659bbd8..886bf610 100644 --- a/docs/admin-guide/certificates.md +++ b/docs/admin-guide/certificates.md @@ -16,10 +16,6 @@ cat >$FQDN.cnf <> $LOGFILE +exec "$@" &>> $LOGFILE +``` +and store it e.g. as `/root/systemd_debug_starter.sh`. +Then inject it into the daemon startup in the unit file with +``` +ExecStart=/root/systemd_debug_starter.sh $ORIGINAL_EXECUTABLE +``` +then you need to run +``` +systemctl daemon-reload +systemctl start $SERVICE + +``` +and check out the log file. + + +### Strace + +If the error is more subtle, like problems with `SIGPIPE`, `strace` can be useful to unveil the problem. +You may inject strace into the daemon startup in the unit file with +``` +ExecStart=strace -D -f -o /tmp/strace.txt $ORIGINAL_EXECUTABLE +``` +then you need to run +``` +systemctl daemon-reload +systemctl start $SERVICE + +``` +and check out the log file.