Re: [systemd-devel] Logs from a service is not showing up in journalctl but showing up in syslog

2019-07-29 Thread Lennart Poettering
On Do, 25.07.19 19:16, Debraj Manna (subharaj.ma...@gmail.com) wrote: > 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" >

Re: [systemd-devel] Logs from a service is not showing up in journalctl but showing up in syslog

2019-07-29 Thread Lennart Poettering
On Do, 25.07.19 14:20, Mantas Mikulėnas (graw...@gmail.com) wrote: > Take a look at `journalctl -o verbose SYSLOG_IDENTIFIER=su _PID=38464`. > > I suspect the messages *are* in the journal, just not tagged with > UNIT=kafka.service anymore. In some distros, `su` is actually configured to > call

Re: [systemd-devel] Logs from a service is not showing up in journalctl but showing up in syslog

2019-07-29 Thread Lennart Poettering
On Do, 25.07.19 15:55, Debraj Manna (subharaj.ma...@gmail.com) wrote: > I have unit file which looks like below. I am seeing some of the echo are > showing up in syslog but not in journalctl. Can someone let me know what is > going on? > systemd version 229 running on Ubuntu 16. > >

Re: [systemd-devel] Logs from a service is not showing up in journalctl but showing up in syslog

2019-07-25 Thread Reindl Harald
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 >

Re: [systemd-devel] Logs from a service is not showing up in journalctl but showing up in syslog

2019-07-25 Thread 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

Re: [systemd-devel] Logs from a service is not showing up in journalctl but showing up in syslog

2019-07-25 Thread Mantas Mikulėnas
On Thu, Jul 25, 2019 at 1:26 PM Debraj Manna wrote: > I have unit file which looks like below. I am seeing some of the echo are > showing up in syslog but not in journalctl. Can someone let me know what is > going on? > systemd version 229 running on Ubuntu 16. > > [Unit] > Description=Kafka

Re: [systemd-devel] Logs from a service is not showing up in journalctl but showing up in syslog

2019-07-25 Thread Debraj Manna
Thanks Silvio for replying. I will check your suggestions. But it appears this is some issue with systemd version 229 as mentioned in https://unix.stackexchange.com/a/417632 On Thu, Jul 25, 2019 at 4:09 PM Silvio Knizek wrote: > Am Donnerstag, den 25.07.2019, 15:55 +0530 schrieb Debraj Manna:

Re: [systemd-devel] Logs from a service is not showing up in journalctl but showing up in syslog

2019-07-25 Thread Silvio Knizek
Am Donnerstag, den 25.07.2019, 15:55 +0530 schrieb Debraj Manna: > I have unit file which looks like below. I am seeing some of the echo > are > showing up in syslog but not in journalctl. Can someone let me know > what is > going on? > systemd version 229 running on Ubuntu 16. > > [Unit] >

[systemd-devel] Logs from a service is not showing up in journalctl but showing up in syslog

2019-07-25 Thread Debraj Manna
I have unit file which looks like below. I am seeing some of the echo are showing up in syslog but not in journalctl. Can someone let me know what is going on? systemd version 229 running on Ubuntu 16. [Unit] Description=Kafka Service [Service] Type=simple