How to convert my program into a service?
Bo Berglund
bo.berglund at gmail.com
Tue Mar 30 08:02:15 UTC 2021
I have ported a Windows service application originally created using Borland
Delphi using its template TService. Right now this ported version is a simple
command line program written with Free Pascal and it works as intended if
started manually from a terminal.
Now I want to convert it into a Linux service under systemd, but I am confused
by reading what I find when googling...
Is there a authoritative howto document which describes how this should be done
including where to put which files?
I want the service to be run under a specific user account so that the data
files it produces will be accessible by regular users belonging to the same
group as the service user.
The application is a control server for external equipment and it can be
interacted with through a proprietary TCP/IP socket interface. It uses sockets
and serial ports for its operation. (I don't know if this is important but I add
it here just in case).
If additional info is needed I can provide it.
--
Bo Berglund
Developer in Sweden
More information about the ubuntu-users
mailing list