Sorry if I have to ask this here as I still have a restricted account.
I hope someone will help me figure out the difference between case1 and case2 and which is more correct :
1- Autostart tor+polipo by putting a line in /etc/rc.conf.local that reads : pkg_scripts="tor polipo"

OpenBSD does not "autocreate" rc.d scripts. The rc.d infrastructure was added for OpenBSD 4.9 and then enhanced for 5.0; the enhancements included simplified deployment of these scripts for port maintainers.

It is my understanding that most ports (and their packages) that have daemons will install scripts in rc.d. I say most because it is not impossible that a little used port may have been missed.

Should you come across a package with a daemon that does not have an rc.d script, please feel free to contact the $MAINTAINER to discuss. There may be a special requirement not met by rc.d infrastructure. If you get no response or if there is no port $MAINTAINER on record -- the ports' Makefile is where to look -- you may ask the ports@ mailing list.

I thought daemons' home is /etc/rc.d/ and that 'daemonise' involves /etc/rc.d/ only
and because of this I thought a line in polipo's conf : 'daemonise = true' would be invalid unless a polipo daemon existed in /etc/rc.d/ .. same thought for tor's torrc line : 'RunAsDeamon 1'
Am I being wrong?

news/sabnzbd was added to the ports tree only 7 months ago, without an rc.d script. There was no discussion of the daemon on the ports@ mailing list. You might want to contact the $MAINTAINER as I recommended above. Port maintainers publish their Email addresses in the ports tree and are expected to receive and respond to queries from users. If you don't have the ports tree installed on your system, a web interface to the ports tree is managed by a third party (http://openports.se) and you can find the $MAINTAINER's name and Email address on this page: http://openports.se/bbmaint.php?maint=marcus|a|nazgul.ch

Quote:

Am I being wrong?

You misunderstand. /etc/rc.d is only used for daemon control scripts that follow the requirements of the rc.d infrastructure. Please, read the rc.d(8) and rc.subr(8) man pages.

Last edited by jggimi; 23rd January 2013 at 07:07 PM.
Reason: typo, clarity