I use the systemd method mentioned above.
But i use [Install] as WantedBy=basic.target to start it as soon as possible (after network just like above) instead of multi.target.
I also use both ExecStart & ExecStop, and in the exec stop I remove the symlink to the service, because in my case I only want this to run once (I am using it to autoexpand the root file system at boot and then reboot).
But i use [Install] as WantedBy=basic.target to start it as soon as possible (after network just like above) instead of multi.target.
I also use both ExecStart & ExecStop, and in the exec stop I remove the symlink to the service, because in my case I only want this to run once (I am using it to autoexpand the root file system at boot and then reboot).
Statistics: Posted by bedna — Sun Jan 28, 2024 3:43 pm