30.12.2015 03:40, Reindl Harald пишет: > fine, on a real TTY (CTRL+ALT+F2) the echo appears
It is not echo, it is "+console" part of StandardOutput - i.e. it is still logging, not output. > (cluttered with echo > and the PID instead just the output) but that don't help much in a > SSH-Session.......... > > Am 30.12.2015 um 01:26 schrieb Reindl Harald: >> why is there only logging instead "TEST" written to the terminal >> starting a oneshot-service or in case it's a entry in /etc/crontab >> triggering a cronmail becaus the output? >> >> that's not helpful when try to migrate cronjobs to systemd-units for >> using ReadOnlyDirectory and other security otpions >> >> [Service] >> Type=oneshot >> ExecStart=/usr/bin/echo TEST >> StandardOutput=syslog+console >> StandardError=inherit >> __________________________________ >> >> [root@srv-rhsoft:~]$ > messages >> [root@srv-rhsoft:~]$ cat messages >> [root@srv-rhsoft:~]$ systemctl start contentlounge-podcast.service >> [root@srv-rhsoft:~]$ cat messages >> Dec 30 01:25:52 srv-rhsoft systemd: Starting ContentLounge Podcast >> Cronjob... >> Dec 30 01:25:53 srv-rhsoft echo: TEST >> Dec 30 01:25:53 srv-rhsoft systemd: Started ContentLounge Podcast >> Cronjob. >> [root@srv-rhsoft:~]$ > > > > _______________________________________________ > systemd-devel mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/systemd-devel > _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
