<div dir="ltr">Because the manual for that awful POS is split into many things. The manual you actually want is `man system.service`.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 22, 2017 at 8:49 AM, Jim Lynch <span dir="ltr"><<a href="mailto:ale_nospam@fayettedigital.com" target="_blank">ale_nospam@fayettedigital.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I missed that option. I'd guess that'd work just fine. The manual page I was looking at doesn't list it as an option.<br>
<br>
Thanks,<br>
<br>
Jim.<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On 04/22/2017 06:56 AM, DJ-Pfulio wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
under [Service] include a line "User=<username>".<br>
Does that not work?<br>
<br>
On 04/22/2017 06:50 AM, Jim Lynch wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The situation is that I have a perl script that needs to stay running as<br>
long as the system is up. I also need to be able to restart the script<br>
at will. I'm currently running it in an infinite loop shell script and<br>
it works, but I'm starting it manually. I think I have figured out how<br>
to run it via systemd using the Restart=always option, but the<br>
application that needs to restart it isn't running as root. Currently<br>
it's restarted by sending a KILL to the pid that was stored in the<br>
script. The killing program is a web page running PHP.<br>
<br>
I'm running Ubuntu 16.04 server.<br>
<br>
I don't see a way to run the serviced script as another user. I suppose<br>
I could configure sudo to run kill without a password.<br>
<br>
Anyway I'm looking for advice as to the best way to handle this<br>
situation. Simpler is better.<br>
<br>
</blockquote>
______________________________<wbr>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/li<wbr>stinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/li<wbr>stinfo</a><br>
<br>
<br>
</blockquote>
<br>
______________________________<wbr>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/li<wbr>stinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/li<wbr>stinfo</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">James Sumners<br><a href="http://james.sumners.info/" target="_blank">http://james.sumners.info/</a> (technical profile)<br><a href="http://jrfom.com/" target="_blank">http://jrfom.com/</a> (personal site)<br><a href="http://haplo.bandcamp.com/" target="_blank">http://haplo.bandcamp.com/</a> (music)</div>
</div>