FYI, if you want to start a process to run on startup and continue running, then you can add it to /etc/rc.local
, but that'll keep rc.local
running until your process finishes (never, possibly)
Instead, you can use start-stop-daemon
:
start-stop-daemon -S -b -x /root/project/project-script
You'll need to make sure your script is executable, too. The -b
puts the process in the background so it won't hold up execution of the rest of rc.local
.