<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body dir="auto"><div dir="auto">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?</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div id="composer_signature" dir="auto"><div style="font-size:85%;color:#575757" dir="auto">Enviado desde mi Samsung Mobile de Telcel</div></div><div dir="auto"><br></div><div><br></div><div align="left" dir="auto" style="font-size:100%;color:#000000"><div>-------- Mensaje original --------</div><div>De: Bo Berglund <bo.berglund@gmail.com> </div><div>Fecha: 30/3/2021  2:06 a. m.  (GMT-06:00) </div><div>A: ubuntu-users@lists.ubuntu.com </div><div>Asunto: How to convert my program into a service? </div><div><br></div></div>I have ported a Windows service application originally created using Borland<br>Delphi using its template TService. Right now this ported version is a simple<br>command line program written with Free Pascal and it works as intended if<br>started manually from a terminal.<br><br>Now I want to convert it into a Linux service under systemd, but I am confused<br>by reading what I find when googling...<br><br>Is there a authoritative howto document which describes how this should be done<br>including where to put which files?<br><br>I want the service to be run under a specific user account so that the data<br>files it produces will be accessible by regular users belonging to the same<br>group as the service user.<br><br>The application is a control server for external equipment and it can be<br>interacted with through a proprietary TCP/IP socket interface. It uses sockets<br>and serial ports for its operation. (I don't know if this is important but I add<br>it here just in case).<br><br>If additional info is needed I can provide it.<br><br><br>-- <br>Bo Berglund<br>Developer in Sweden<br><br><br>-- <br>ubuntu-users mailing list<br>ubuntu-users@lists.ubuntu.com<br>Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users<br></body></html>