<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";
color:black;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I have not looked into module options or temp files – I haven’t learned these yet.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">My bash script does write to the /sys/class/… trigger to set or clear an LED.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I don’t understand how system-tmpfile helps with a periodic operation. But I will look into it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">Larry Harmon</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D"> </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Larry Harmon | Sr. Embedded Engineer<br>
<br>
Turning Technologies | 255 West Federal Street | Youngstown, OH 44503<br>
Direct: 330-531-7664 | Main: 330-746-3015 | Toll Free: 866-746-3015 </span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">| SKYPE larry.harmon54</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><a href="mailto:lharmon@turningtechnologies.com"><span style="color:blue">lharmon@turningtechnologies.com</span></a></span><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">
| </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a href="http://www.turningtechnologies.com/" target="_blank"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:blue">www.TurningTechnologies.com</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:3.0pt;font-family:"Arial","sans-serif";color:#1F497D"> </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"> <img border="0" width="185" height="46" id="Picture_x0020_3" src="cid:image001.png@01D02414.5E45C140" alt="cid:image001.png@01CE9E4C.2D88DB90"></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:3.0pt;font-family:"Arial","sans-serif";color:#1F497D"> </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Stay Connected</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"> -</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a href="https://twitter.com/turningtech" target="_blank"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:blue">@TurningTech </span></a></span><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">·</span></b><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">
</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a href="http://www.facebook.com/#!/pages/Turning-Technologies/104796086230111?ref=ts" target="_blank"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:blue">Facebook</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.0pt;font-family:"Arial","sans-serif";color:#1F497D">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</span><span lang="EN" style="font-size:7.0pt;font-family:"Arial","sans-serif";color:#1F497D"> you wish to discontinue receiving any future e-mails
from the vendor featured in this message, please send an </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a href="mailto:info@turningtechnologies.com?subject=unsubscribe"><b><span lang="EN" style="font-size:7.0pt;font-family:"Arial","sans-serif";color:#1F497D">e-mail
request</span></b></a></span><span lang="EN" style="font-size:7.0pt;font-family:"Arial","sans-serif";color:#1F497D">.</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> systemd-devel [mailto:systemd-devel-bounces@lists.freedesktop.org]
<b>On Behalf Of </b>"Jóhann B. Guðmundsson"<br>
<b>Sent:</b> Monday, December 29, 2014 6:46 PM<br>
<b>To:</b> systemd-devel@lists.freedesktop.org<br>
<b>Subject:</b> Re: [systemd-devel] simple service shell script filling journal<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 12/29/2014 08:16 PM, Larry Harmon wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I am using a simple shell script, started by system, to set LEDs on a Marvell Armada 370 plug.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">The script uses a while loop with a "sleep 30" line<o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><br>
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<br>
<br>
/etc/modprobe.d/<module>.conf<br>
<br>
options foo bar<br>
<br>
Or find the trigger<br>
<br>
cat /sys/class/leds/<foo>-led/trigger<br>
<br>
Create an tmpfile<br>
<br>
/etc/tmpfiles.d/<foo>-led.conf<br>
<br>
w /sys/class/leds/<foo>-led/trigger - - - - <the trigger to be used><br>
<br>
systemd-tmpfiles --create <foo>-led.conf<br>
<br>
And try that instead of writing a script to accomplish this?<br>
<br>
( 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 )
<br>
<br>
JBG<o:p></o:p></p>
</div>
</body>
</html>