Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4104

Advanced users • Re: Execute a program at start up - BookWorm

$
0
0
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).

Statistics: Posted by bedna — Sun Jan 28, 2024 3:43 pm



Viewing all articles
Browse latest Browse all 4104

Trending Articles