How to convert my program into a service?
Colin Watson
cjwatson at ubuntu.com
Tue Mar 30 11:39:45 UTC 2021
On Tue, Mar 30, 2021 at 12:35:58PM +0200, Bo Berglund wrote:
> Additional question:
> If the program is running as the ssytemd service and it needs to be updated, can
> I then do:
> 1) Replace the executable file in place (while it is running)
> 2) Command systemd to restart the service
>
> I have noted that Linux does not protest if I remove a program when it is
> running so I assume unlike Windows Linux loads the full program into memory at
> start and does not need the file anymore?
Yes, this is a routine operation on Unix and should work fine.
--
Colin Watson (he/him) [cjwatson at ubuntu.com]
More information about the ubuntu-users
mailing list