Hi,
I wanted to switch from a normal init script to procd.
For my old init script I was just starting my daemon and it forked into the background.
Now I can't run the daemon anymore in the foreground.
If I don't fork the daemon in the background it doesn't care... Is procd doing something like this for me?
Services launched by procd must not fork themselves to background, since that prevents procd from tracking them.
Yes, usually procd takes care of forking your process.
Your init file attempts to read a configuration /etc/config/example and will spawn an instance of /usr/sbin/example for each config example section it finds in the configuration file - is this what you want or did you just copy that from somewhere?