On Do, 12.03.20 14:40, Ani A (aniruddh...@gmail.com) wrote:
> Hello,
>
> I am on Ubuntu 18.04.2, and I have systemd version 237. I have some common
> tasks
> which need to happen prestart and poststop which I have moved to a
> script. All unit
> files look like:
>
>
Hi Andrei,
> > echo "..." >> /var/log/my-.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
12.03.2020 12:10, Ani A пишет:
> Hello,
>
> I am on Ubuntu 18.04.2, and I have systemd version 237. I have some common
> tasks
> which need to happen prestart and poststop which I have moved to a
> script. All unit
> files look like:
>
> StandardOutput=file:/var/log/my-.log
>