How to convert my program into a service?
acgx
acgx at linuxtlan.com
Tue Mar 30 15:36:03 UTC 2021
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?... Inserting the command line in a small script that loads in the .profile of the user wouldn't do the trick?Enviado desde mi Samsung Mobile de Telcel
-------- Mensaje original --------De: Bo Berglund <bo.berglund at gmail.com> Fecha: 30/3/2021 2:06 a. m. (GMT-06:00) A: ubuntu-users at lists.ubuntu.com Asunto: How to convert my program into a service? I have ported a Windows service application originally created using BorlandDelphi using its template TService. Right now this ported version is a simplecommand line program written with Free Pascal and it works as intended ifstarted manually from a terminal.Now I want to convert it into a Linux service under systemd, but I am confusedby reading what I find when googling...Is there a authoritative howto document which describes how this should be doneincluding where to put which files?I want the service to be run under a specific user account so that the datafiles it produces will be accessible by regular users belonging to the samegroup as the service user.The application is a control server for external equipment and it can beinteracted with through a proprietary TCP/IP socket interface. It uses socketsand serial ports for its operation. (I don't know if this is important but I addit here just in case).If additional info is needed I can provide it.-- Bo BerglundDeveloper in Sweden-- ubuntu-users mailing listubuntu-users at lists.ubuntu.comModify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210330/dbac1c50/attachment.html>
More information about the ubuntu-users
mailing list