![]() |
|
|||||||
| OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|||
|
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" 2- Autostart the pair by putting lines in /etc/rc.local : #Start tor if [ -x /usr/local/bin/tor ]; then echo -n ' tor' /usr/local/bin/tor fi #Start Polipo if [ -x /usr/local/bin/polipo ]; then echo -n ' polipo' /usr/local/bin/polipo fi |
|
||||
|
Hello and welcome! Either case is perfectly acceptable but case 1 is much much easier to configure and maintain.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
The first method using the pkg_scripts variable is the modern way. This assumes that the ports or packages installed a script for /etc/rc.d
The second method, using scripts in /etc/rc.local is the "old" way. See http://www.openbsd.org/faq/faq10.html#rc
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
|
Quote:
|
|
||||
|
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.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Much thanks to you jggimi,j65nko for the clarification.
Code:
sabnzbd-0.7.0: ok --- +sabnzbd-0.7.0 ------------------- Start the sabnzbd daemon by /usr/local/bin/sabnzbd and do the initial configuration via http://localhost:8080/ 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:
__________________
OpenBSD LiveCDs/LiveDVDs Last edited by jggimi; 23rd January 2013 at 06:07 PM. Reason: typo, clarity |
|
|||
|
Thanks jggimi , for your help and helpfulness.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to make polipo proxy transparent? | Skinny | OpenBSD Packages and Ports | 6 | 5th December 2012 02:25 AM |
| D Bus error while starting gnome | jewsofeast | OpenBSD Packages and Ports | 2 | 21st November 2010 04:37 AM |
| vsftpd not starting | map7 | FreeBSD Ports and Packages | 1 | 10th June 2010 09:51 AM |
| Samba NOT STARTING | pcfxer | FreeBSD General | 11 | 13th May 2008 09:29 AM |