[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-tech-pkg
Subject:    Re: using pkg rc.d scripts
From:       "George Georgalis" <george () galis ! org>
Date:       2005-12-29 12:59:55
Message-ID: 20051229125955.GB28661 () sta ! duo
[Download RAW message or body]

On Thu, Dec 29, 2005 at 12:51:51PM +0100, Lubomir Sedlacik wrote:
>On Thu, Dec 29, 2005 at 12:04:13AM -0500, George Georgalis wrote:
>> was wondering how people are starting pkgsrc rc.d scripts?
>> 
>> the only documentation I see is in 15.5.16 of doc/pkgsrc.txt, put
>> PKG_RCD_SCRIPTS=YES in /etc/mk.conf... but I'd really prefer the
>> control scripts to go in (or be removed from) /usr/pkg/etc/rc.d/
>> but there doesn't seem an established way to do this. I presume
>> something in /etc/rc.local (based on /etc/rc) like 
>> 
>> files=$(rcorder -s nostart ${rc_rcorder_flags} /usr/pkg/etc/rc.d/*)
>> 
>> for _rc_elem in $files; do
>>         run_rc_script $_rc_elem start
>> done
>> 
>> would work okay, but I'd just assume /usr/pkg/etc/rc.d/ scripts be
>> installed (and deinstalled) as long as I've got control via rc.conf or
>> some other invocation.
>> 
>> I tried setting various flavors of rc_rcorder_flags=/usr/pkg/etc/rc.d/*
>> in rc.conf but my /usr is not mounted when rcorder is run from /etc/rc
>> 
>> so is there another way to manage this? do we need a PKG_RCD_DIR?
>
>pkgsrc/mk/defaults/mk.conf:RCD_SCRIPTS_DIR?= /etc/rc.d
>
>if you want your package rc scripts separated, a very simple solution is
>to set it to "/etc/pkg/rc.d" and set rc_rcorder_flags accordingly.

well, I want them under ${PREFIX}, so for example, maybe I'll
someday have a nfs ${PREFIX} solution.

but wherever, what options are there to start them up?

is there a consensus? or do people typically set PKG_RCD_SCRIPTS
or something else?

// George


-- 
George Georgalis, systems architect, administrator <IXOYE><
http://galis.org/ cell:646-331-2027 mailto:george@galis.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic