Re: starting Apache

2010-05-18 Thread Chris Turner

Justin C. Sherrill wrote:

It seems that maybe we should ship with /etc/rc.d set by default.


-1 for me - usual 'system is system and pkgsrc is pkgsrc' reasoning.

(and just had my tweaked apache start script botched by pkgsrc)

pkgsrc / rcng are super flexible - isn't there some way to spec the
rcorder scan dirs? (seem to recall.. maybe freebsd does this?) -
perhaps setting the rc default to scan pkgsrc as well might be the way 
to go if a change is required?


then we could throw in some quasi-rh-like 'service foo start' command
which would locate the appropriate rc script (according to dir scan 
config), and run - this would let the newer-folks have an easy setup:


- tweak rc.conf
- service foo start

to prevent the 'hey whered my script go', and
and people with custom scripting wouldn't be clobbered..

though I'd like something linguistically tweaked a smidge like 'rc run' 
- 'service' is WAAAY too windowsy and muddles things




Re: starting Apache

2010-05-18 Thread Chris Turner

Thomas Nikolajsen wrote:

rc variable namespace still isn't separated, e.g. no reserved name space
for base rc scripts, any ideas for this?


this could probably be tweaked somehow in the scan / startup sequence 
with rcorder(1) statements.. e.g. pass 1 for 'basic init', pass 2 for 
'secondary init' -


but then it's getting complicated..

I like the simplicity of rcng, which lets the user kind of 'make their 
own' policy, if desired..


for example, I just tweaked my own rc.conf to have a
little 'ops mode' toggle.

e.g: I set box to ops_mode='basic' for heavy maintinance,
do maintinance
tweak ops_mode='full'
and reboot

this keeps me from thinking 'oh right - that needs this, so don't enable 
that' when doing maintinance.




Re: starting Apache

2010-05-17 Thread Jeremy C. Reed
On Sun, 16 May 2010, Pierre Abbat wrote:

 PKG_RCD_SCRIPTS=yes
 But the next line is
 RCD_SCRIPTS_DIR=/usr/pkg/share/examples/rc.d

(That value is for RCD_SCRIPTS_EXAMPLEDIR.)

That is broken. The default already is
RCD_SCRIPTS_DIR?= /etc/rc.d

 So if I set that to /etc/rc.d, then they'll go to /etc/rc.d when I install 
 the packages?



Re: starting Apache

2010-05-17 Thread Thomas Nikolajsen
But I think I'd prefer /usr/pkg/etc/rc.d, to have a clean separation between
base and pkgsrc rc scripts (which might have the same names).

I can second this; please make /usr/pkg/etc/rc.d default for pkgsrc;
it is just too messy to use /etc/rc.d for non base scripts IMHO.

(BIND removal instructions for next release should be updated to reflect this)
(also in an ideal world everyone will agree on this and we can GC rc scripts; 
vs now:
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/63a7853169a0e37ad03fd8e3e042194273885b34)

rc variable namespace still isn't separated, e.g. no reserved name space
for base rc scripts, any ideas for this?
It might be for this reason that pkgsrc doesn't install rc scripts by default 
in rc.d;
they can break existing setup, if we use variable name for base rc script
which some package also uses.

 -thomas



Re: starting Apache

2010-05-16 Thread Pierre Abbat
On Saturday 15 May 2010 23:07:21 Justin C. Sherrill wrote:
 It's a local setting, not one set at bulk package build time:

 http://mail-index.netbsd.org/tech-pkg/2010/05/14/msg005443.html

I just checked mine, and it's on.
PKG_RCD_SCRIPTS=yes
But the next line is
RCD_SCRIPTS_DIR=/usr/pkg/share/examples/rc.d
So if I set that to /etc/rc.d, then they'll go to /etc/rc.d when I install 
the packages?

Pierre

-- 
li fi'u vu'u fi'u fi'u du li pa


Re: starting Apache

2010-05-16 Thread Sascha Wildner

Am 16.05.2010 12:05, schrieb Pierre Abbat:

On Saturday 15 May 2010 23:07:21 Justin C. Sherrill wrote:

It's a local setting, not one set at bulk package build time:

http://mail-index.netbsd.org/tech-pkg/2010/05/14/msg005443.html


I just checked mine, and it's on.


Where did you check? In your /usr/pkg/etc/mk.conf?


PKG_RCD_SCRIPTS=yes
But the next line is
RCD_SCRIPTS_DIR=/usr/pkg/share/examples/rc.d
So if I set that to /etc/rc.d, then they'll go to /etc/rc.d when I install
the packages?


Yeah, if RCD_SCRIPTS_DIR isn't set in /usr/pkg/etc/mk.conf, then 
/etc/rc.d should be the default.


Sascha

--
http://yoyodyne.ath.cx


Re: starting Apache

2010-05-16 Thread Justin C. Sherrill
On Sun, May 16, 2010 6:24 am, Sascha Wildner wrote:

 Yeah, if RCD_SCRIPTS_DIR isn't set in /usr/pkg/etc/mk.conf, then
 /etc/rc.d should be the default.

It seems that maybe we should ship with /etc/rc.d set by default.  I don't
recall if there was discussion of this before.  People will still have to
enable it via rc.conf anyway.



Re: starting Apache

2010-05-16 Thread Pierre Abbat
On Sunday 16 May 2010 19:46:54 Justin C. Sherrill wrote:
 It seems that maybe we should ship with /etc/rc.d set by default.  I don't
 recall if there was discussion of this before.  People will still have to
 enable it via rc.conf anyway.

There was, when I installed kdm. I think it is good to set it to /etc/rc.d by 
default.

Pierre
-- 
li fi'u vu'u fi'u fi'u du li pa


Re: starting Apache

2010-05-15 Thread Justin C. Sherrill
On Thu, May 13, 2010 11:54 pm, Justin C. Sherrill wrote:

 My guess is that in order for this to work with pkgin, Justin would have
 to set PKG_RCD_SCRIPTS in the mk.conf that he uses in his bulk builds.

 I would have guessed the opposite - that it's read by pkg_add during the
 binary install and that affects where the file goes.  It's a guess,
 though, or perhaps wishful thinking.  I'll ask on the tech-pkg list.

It's a local setting, not one set at bulk package build time:

http://mail-index.netbsd.org/tech-pkg/2010/05/14/msg005443.html




starting Apache

2010-05-13 Thread Pierre Abbat
I installed Apache a couple of weeks ago and would like to start it. There is 
no apache file in /etc/rc.d. There is a 
file /usr/pkg/share/examples/rc.d/apache. Why doesn't the package put this 
file in /etc/rc.d? I could copy the file there, but if I upgraded the 
package, and the rc.d script changed, the file in /etc/rc.d wouldn't be 
updated.

Pierre
-- 
Don't buy a French car in Holland. It may be a citroen.


Re: starting Apache

2010-05-13 Thread Sascha Wildner

Am 14.05.2010 02:52, schrieb Pierre Abbat:

I installed Apache a couple of weeks ago and would like to start it. There is
no apache file in /etc/rc.d. There is a
file /usr/pkg/share/examples/rc.d/apache. Why doesn't the package put this
file in /etc/rc.d? I could copy the file there, but if I upgraded the
package, and the rc.d script changed, the file in /etc/rc.d wouldn't be
updated.


pkgsrc has a PKG_RCD_SCRIPTS option that - if set to YES in 
/usr/pkg/etc/mk.conf - will copy rc.d scripts automatically to /etc/rc.d.


Sascha

--
http://yoyodyne.ath.cx


Re: starting Apache

2010-05-13 Thread Pierre Abbat
On Thursday 13 May 2010 21:10:24 Sascha Wildner wrote:
 pkgsrc has a PKG_RCD_SCRIPTS option that - if set to YES in
 /usr/pkg/etc/mk.conf - will copy rc.d scripts automatically to /etc/rc.d.

Does pkgin have such an option, or should I just copy the script?

Pierre
-- 
When a barnacle settles down, its brain disintegrates.
Já não percebe nada, já não percebe nada.



Re: starting Apache

2010-05-13 Thread Sascha Wildner

Am 14.05.2010 04:01, schrieb Pierre Abbat:

On Thursday 13 May 2010 21:10:24 Sascha Wildner wrote:

pkgsrc has a PKG_RCD_SCRIPTS option that - if set to YES in
/usr/pkg/etc/mk.conf - will copy rc.d scripts automatically to /etc/rc.d.


Does pkgin have such an option, or should I just copy the script?


My guess is that in order for this to work with pkgin, Justin would have 
to set PKG_RCD_SCRIPTS in the mk.conf that he uses in his bulk builds.


Sascha

--
http://yoyodyne.ath.cx


Re: starting Apache

2010-05-13 Thread Justin C. Sherrill
On Thu, May 13, 2010 10:25 pm, Sascha Wildner wrote:
 Am 14.05.2010 04:01, schrieb Pierre Abbat:
 On Thursday 13 May 2010 21:10:24 Sascha Wildner wrote:
 pkgsrc has a PKG_RCD_SCRIPTS option that - if set to YES in
 /usr/pkg/etc/mk.conf - will copy rc.d scripts automatically to
 /etc/rc.d.

 Does pkgin have such an option, or should I just copy the script?

 My guess is that in order for this to work with pkgin, Justin would have
 to set PKG_RCD_SCRIPTS in the mk.conf that he uses in his bulk builds.

I would have guessed the opposite - that it's read by pkg_add during the
binary install and that affects where the file goes.  It's a guess,
though, or perhaps wishful thinking.  I'll ask on the tech-pkg list.