[systemd-devel] Logs from a service is not showing up in journalctl but showing up in syslog
Reindl Harald
h.reindl at thelounge.net
Thu Jul 25 13:50:23 UTC 2019
Am 25.07.19 um 15:46 schrieb Debraj Manna:
> Thanks Mantas for replying.
>
> ExecStartPre=-/bin/su ubuntu -c
> "/home/ubuntu/build-target/kafka/kafka-systemd-prestart.sh"
> ExecStart=/bin/su ubuntu -c
> "/home/ubuntu/build-target/kafka/kafka-systemd-health.sh"
> ExecStopPost=-/bin/bash
> /home/ubuntu/build-target/kafka/kafka-systemd-poststop.sh
>
> If I specify User= then all the scripts will be executed with that user.
> Can you let me know if I only need to execute kafka-systemd-prestart.sh
> and kafka-systemd-health.sh with let's sayubuntu user
> and kafka-systemd-poststop.sh withroot user what is the recommended way
> to do this?
to split that mess into different services with proper dependencies
More information about the systemd-devel
mailing list