How to convert my program into a service?

Ralf Mardorf kde.lists at yahoo.com
Tue Mar 30 16:49:06 UTC 2021


On Tue, 30 Mar 2021 09:36:03 -0600, acgx wrote:
>I'm not sure if I misunderstood something, but If you place it like a
>service it would be enable for the whole system and users isn't it?...

Yesno, but in this case it doesn't matter anyway, the program launched
with root privileges could e.g. first add an empty data file, then chmod
and chown the file for access of a dedicated group only and after that
add data to the file.

>Inserting the command line in a small script that loads in the
>.profile of the user wouldn't do the trick?

This assumes that a session for this user/group gets started. I suspect
the OP doesn't want to do this. FWIW systemd has got also mechanisms to
launch user session specific units.





More information about the ubuntu-users mailing list