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
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to