[systemd-devel] Redirect logs from script to systemd's StandardOutput file
Ani A
aniruddha.a at gmail.com
Sat Mar 14 12:23:24 UTC 2020
Hi Andrei,
> > echo "..." >> /var/log/my-<unitname>.log
> >
>
> It is not clear where you are using this command. In one of scripts that
> are part of unit definition? In some other script that is run outside of
> running unit? In interactive shell session?
This command is called from the shell script which is invoked with
ExecStartPre and ExecStartPost.
--
Ani
More information about the systemd-devel
mailing list