Re: [systemd-devel] Redirect logs from script to systemd's StandardOutput file

2020-03-31 Thread Lennart Poettering
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: > >

Re: [systemd-devel] Redirect logs from script to systemd's StandardOutput file

2020-03-14 Thread Ani A
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

Re: [systemd-devel] Redirect logs from script to systemd's StandardOutput file

2020-03-13 Thread Andrei Borzenkov
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 >