How to convert my program into a service?

Colin Watson cjwatson at ubuntu.com
Wed Mar 31 14:55:40 UTC 2021


On Wed, Mar 31, 2021 at 01:30:16PM -0000, Jonesy via ubuntu-users wrote:
> For compiled programs yes.  I don't believe it's the case for shell scripts.
> Many times I stepped on my own d**k by editing and saving a bash script
> while it was running.  

There's no technical restriction on overwriting a running script, just
as there is none for ELF executables.  It's possible you might happen to
confuse the interpreter (though generally it reads the whole thing into
memory when it starts), but that's a different matter.

-- 
Colin Watson (he/him)                              [cjwatson at ubuntu.com]




More information about the ubuntu-users mailing list