[ale] Need help with running a process from systemd or ???

James Sumners james.sumners at gmail.com
Sat Apr 22 09:18:20 EDT 2017


Because the manual for that awful POS is split into many things. The manual
you actually want is `man system.service`.

On Sat, Apr 22, 2017 at 8:49 AM, Jim Lynch <ale_nospam at fayettedigital.com>
wrote:

> 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.
>
> Thanks,
>
> Jim.
>
>
>
> On 04/22/2017 06:56 AM, DJ-Pfulio wrote:
>
>> under [Service] include a line "User=<username>".
>> Does that not work?
>>
>> On 04/22/2017 06:50 AM, Jim Lynch wrote:
>>
>>> The situation is that I have a perl script that needs to stay running as
>>> long as the system is up.  I also need to be able to restart the script
>>> at will.  I'm currently running it in an infinite loop shell script and
>>> it works, but I'm starting it manually.  I think I have figured out how
>>> to run it via systemd using the Restart=always option, but the
>>> application that needs to restart it isn't running as root.  Currently
>>> it's restarted by sending a KILL to the pid that was stored in the
>>> script.  The killing program is a web page running PHP.
>>>
>>> I'm running Ubuntu 16.04 server.
>>>
>>> I don't see a way to run the serviced script as another user.  I suppose
>>> I could configure sudo to run kill without a password.
>>>
>>> Anyway I'm looking for advice as to the best way to handle this
>>> situation.  Simpler is better.
>>>
>>>
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>>
>>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>



-- 
James Sumners
http://james.sumners.info/ (technical profile)
http://jrfom.com/ (personal site)
http://haplo.bandcamp.com/ (music)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20170422/cd4cc1f3/attachment.html>


More information about the Ale mailing list