Re: [systemd-devel] Is there a way to see if a script is run from systemd

2016-05-08 Thread Kai Krakow
Am Sun, 8 May 2016 13:05:34 +0200 schrieb Reindl Harald : > Am 07.05.2016 um 15:00 schrieb Cecil Westerhof: > > I have written a Bash script to be used for a service. Is it > > possible to see in the script if it is run from systemd? I could > > use this for debugging purposes > > just set a en

Re: [systemd-devel] Is there a way to see if a script is run from systemd

2016-05-08 Thread Reindl Harald
Am 07.05.2016 um 15:00 schrieb Cecil Westerhof: I have written a Bash script to be used for a service. Is it possible to see in the script if it is run from systemd? I could use this for debugging purposes just set a environment variable in the systemd unit or check against a lot of env-vars

Re: [systemd-devel] Let journalctl give only output of script

2016-05-08 Thread Tomasz Torcz
On Sat, May 07, 2016 at 12:47:45PM +0200, Cecil Westerhof wrote: > I made my own service and I can get info about it with: > ​journalctl -u firefoxCPUUsageStore​ > > ​But this gives also info about starting, restarting and the like. Is it > possible to get only the logging that is generated by

[systemd-devel] Is there a way to see if a script is run from systemd

2016-05-08 Thread Cecil Westerhof
I have written a Bash script to be used for a service. Is it possible to see in the script if it is run from systemd? I could use this for debugging purposes. -- Cecil Westerhof ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://

[systemd-devel] Let journalctl give only output of script

2016-05-08 Thread Cecil Westerhof
I made my own service and I can get info about it with: ​journalctl -u firefoxCPUUsageStore​ ​But this gives also info about starting, restarting and the like. Is it possible to get only the logging that is generated by the script itself?​ -- Cecil Westerhof _