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.

Thanks

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
[email protected]<mailto:[email protected]> | 
www.TurningTechnologies.com<http://www.turningtechnologies.com/>

 [cid:[email protected]]

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:[email protected]?subject=unsubscribe>.

From: systemd-devel [mailto:[email protected]] On 
Behalf Of "Jóhann B. Guðmundsson"
Sent: Monday, December 29, 2014 6:46 PM
To: [email protected]
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

/etc/modprobe.d/<module>.conf

options foo bar

Or find the trigger

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

Create an tmpfile

/etc/tmpfiles.d/<foo>-led.conf

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 )

JBG
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to