[systemd-devel] simple service shell script filling journal

Reindl Harald h.reindl at thelounge.net
Mon Dec 29 12:27:41 PST 2014



Am 29.12.2014 um 21:16 schrieb Larry Harmon:
> I am using a simple shell script, started by system, to set LEDs on a
> Marvell Armada 370 plug.
>
> The script uses a while loop with a "sleep 30" line
>
> Exiting sleep seems to log to the journal, filling it with useless info.
>
> How can I change this behavior?
>
> I have tried different service types (fork, oneshot) as well as an
> intermediate shell script which starts the real script, no luck!
>
> The journal output looks like:
>
> Dec 22 19:19:12 rrap-0281aa.local LEDupdater.sh[188]: Active: active
> (running) since Mon 2014-12-22 18:30:45 UTC; 48min ago

try "StandardOutput=null" inside [Service]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20141229/e5ad78de/attachment-0001.sig>


More information about the systemd-devel mailing list