[systemd-devel] simple service shell script filling journal

Larry Harmon lharmon at turningtechnologies.com
Tue Dec 30 06:38:29 PST 2014

I have not looked into module options or temp files – I haven’t learned these yet.

My bash script does write to the /sys/class/… trigger to set or clear an LED.
I don’t understand how system-tmpfile helps with a periodic operation.  But I will look into it.


Larry Harmon

Larry Harmon | Sr. Embedded Engineer

Turning Technologies | 255 West Federal Street | Youngstown, OH 44503
Direct: 330-531-7664 | Main: 330-746-3015 | Toll Free: 866-746-3015 | SKYPE larry.harmon54
lharmon at turningtechnologies.com<mailto:lharmon at turningtechnologies.com> | www.TurningTechnologies.com<http://www.turningtechnologies.com/>

 [cid:image001.png at 01CE9E4C.2D88DB90]

Stay Connected - @TurningTech <https://twitter.com/turningtech> · Facebook<http://www.facebook.com/#!/pages/Turning-Technologies/104796086230111?ref=ts>

This e-mail message, including any attached files, is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient or you wish to discontinue receiving any future e-mails from the vendor featured in this message, please send an e-mail request<mailto:info at turningtechnologies.com?subject=unsubscribe>.

From: systemd-devel [mailto:systemd-devel-bounces at lists.freedesktop.org] On Behalf Of "Jóhann B. Guðmundsson"
Sent: Monday, December 29, 2014 6:46 PM
To: systemd-devel at lists.freedesktop.org
Subject: Re: [systemd-devel] simple service shell script filling journal

On 12/29/2014 08:16 PM, Larry Harmon wrote:
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

Hmm somehow using a script ( and a type service unit ) to accomplish this does not sound right to me and I'm pretty sure greg k-h has the correct way of achieving this but did you try fiddling with module options


options foo bar

Or find the trigger

cat /sys/class/leds/<foo>-led/trigger

Create an tmpfile


w /sys/class/leds/<foo>-led/trigger - - - - <the trigger to be used>

systemd-tmpfiles --create <foo>-led.conf

And try that instead of writing a script to accomplish this?

( This might be a bug in the kernel/driver if this is not working correctly or if you cant "tweak it" it with something like the above )

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20141230/7bc7a274/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 7539 bytes
Desc: image001.png
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20141230/7bc7a274/attachment-0001.png>

More information about the systemd-devel mailing list