I had a FreeBSD machine and it had
/usr/sbin/daemon command which could put my program to background.
The question is how to make it in Ubuntu? better in a startup script.
I mean if my program can't put itself in a background when starts.
start-stop-daemon --start --quiet --pidfile $PIDSPATH/$PIDFILE --exec $DAEMON
But it just starts program and I must wait for it to finish.