Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*

2012-06-20 Thread Robert Bonomi
> From: Wojciech Puchar > > >> But still - do you know why it is necessary? > > > > An explanation written some 80 years ago; > > 'Because that way it will work'. > if you don't have anything to say - just don't do it. practice what you preach. ___ fre

Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*

2012-06-20 Thread RW
On Wed, 20 Jun 2012 08:02:48 -0400 Jerry wrote: > On Wed, 20 Jun 2012 12:47:29 +0100 > RW articulated: > > > On Wed, 20 Jun 2012 09:45:07 +0100 > > Matthew Seaman wrote: > > > > > #!/bin/sh > > > # > > > # Persuade vboxheadless to start before samba. > > > > > > # PROVIDE: precedence > > > # RE

Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*

2012-06-20 Thread Matthew Seaman
cat precedence #!/bin/sh # # Persuade postgresql to start before spamassassin. # PROVIDE: precedence # REQUIRE: postgresql # BEFORE: spamd % rcorder /etc/rc.d/* /usr/local/etc/rc.d/* | grep -E 'postgresql|precedence|sa-spamd' /usr/local/etc/rc.d/postgresql /usr/local/etc/rc.d/precedence /us

Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*

2012-06-20 Thread Damien Fleuriot
On 6/20/12 11:09 AM, Matthew Seaman wrote: > On 20/06/2012 09:51, Wojciech Puchar wrote: >>> >>> Create a new file in /usr/local/etc/rc.d/precedence with the following >>> contents: >>> >>> #!/bin/sh >>> # >>> # Persuade

Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*

2012-06-20 Thread Jerry
On Wed, 20 Jun 2012 12:47:29 +0100 RW articulated: > On Wed, 20 Jun 2012 09:45:07 +0100 > Matthew Seaman wrote: > > > #!/bin/sh > > # > > # Persuade vboxheadless to start before samba. > > > > # PROVIDE: precedence > > # REQUIRE: vboxheadless > > # BEFORE: samba > > > > : > > > > Make it execu

Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*

2012-06-20 Thread Wojciech Puchar
But still - do you know why it is necessary? An explanation written some 80 years ago; 'Because that way it will work'. if you don't have anything to say - just don't do it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mail

Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*

2012-06-20 Thread RW
On Wed, 20 Jun 2012 09:45:07 +0100 Matthew Seaman wrote: > #!/bin/sh > # > # Persuade vboxheadless to start before samba. > > # PROVIDE: precedence > # REQUIRE: vboxheadless > # BEFORE: samba > > : > > Make it executable. Note -- the ':' does seem to be necessary. Why? None of the dummy scrip

Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*

2012-06-20 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Wed Jun 20 03:51:43 2012 > Date: Wed, 20 Jun 2012 10:51:04 +0200 (CEST) > From: Wojciech Puchar > To: Matthew Seaman > Cc: freebsd-questions@freebsd.org > Subject: Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/* >

Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*

2012-06-20 Thread Wojciech Puchar
#!/bin/sh # # Persuade vboxheadless to start before samba. # PROVIDE: precedence # REQUIRE: vboxheadless # BEFORE: samba : Make it executable. Note -- the ':' does seem to be necessary. thank you for help. I will test it when being on place and could reboot. But still - do you know why it i

Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*

2012-06-20 Thread Jerry
On Wed, 20 Jun 2012 10:51:04 +0200 (CEST) Wojciech Puchar articulated: > > Create a new file in /usr/local/etc/rc.d/precedence with the > > following contents: > > > > #!/bin/sh > > # > > # Persuade vboxheadless to start before samba. > > > > #

Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*

2012-06-20 Thread Matthew Seaman
On 20/06/2012 09:51, Wojciech Puchar wrote: >> >> Create a new file in /usr/local/etc/rc.d/precedence with the following >> contents: >> >> #!/bin/sh >> # >> # Persuade vboxheadless to start before samba. >> >> # PROVIDE: precedence >> #

Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*

2012-06-20 Thread Wojciech Puchar
Create a new file in /usr/local/etc/rc.d/precedence with the following contents: #!/bin/sh # # Persuade vboxheadless to start before samba. # PROVIDE: precedence # REQUIRE: vboxheadless # BEFORE: samba : Make it executable. Note -- the ':' does seem to be necessary. thank you f

Re: seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*

2012-06-20 Thread Matthew Seaman
On 20/06/2012 09:24, Wojciech Puchar wrote: > i have samba server and few virtualbox sessions using vboxnet which is > started by /usr/local/etc/rc.d/vboxheadless > > i want samba to be started AFTER vboxheadless as the latter configures > vboxnet0 automatically when started, and s

seems i cannot fully understand {/,/usr/local/}/etc/rc.d/*

2012-06-20 Thread Wojciech Puchar
i have samba server and few virtualbox sessions using vboxnet which is started by /usr/local/etc/rc.d/vboxheadless i want samba to be started AFTER vboxheadless as the latter configures vboxnet0 automatically when started, and samba do bind to vboxnet0. so i appended vboxheadless to REQUIRE

Re: /usr/local/etc/rc.d/imapproxyd start

2010-09-17 Thread Daniel Bye
On Fri, Sep 17, 2010 at 01:02:03PM +0200, n dhert wrote: > There seems to be a problem with starting up the IMAP proxy server > imapproxyd: > # /usr/local/etc/rc.d/imapproxyd start > says > Starting imapproxyd. > but doesn't return the # prompt ... > # ps -jawx | gre

/usr/local/etc/rc.d/imapproxyd start

2010-09-17 Thread n dhert
There seems to be a problem with starting up the IMAP proxy server imapproxyd: # /usr/local/etc/rc.d/imapproxyd start says Starting imapproxyd. but doesn't return the # prompt ... # ps -jawx | grep imap root 21490 21426 21490 64248 1 S+ 3 0:00.01 /bin/sh /usr/local/etc/rc.d/imapproxyd start

Re: priority or order for /usr/local/etc/rc.d scripts?

2008-06-30 Thread Roland Smith
On Mon, Jun 30, 2008 at 04:37:47PM -0400, fred wrote: > Hi guys, > > Basically, I have 2 scripts in the folder /usr/local/etc/rc.d/ > > Resin.sh and apache.sh Are these the scripts provided by the ports? They should be installed without the '.sh' extension. See rc(

Re: priority or order for /usr/local/etc/rc.d scripts?

2008-06-30 Thread Andrew Wright
Regarding the order of rc scripts, On Mon, 30 Jun 2008, fred wrote: I need resin to be started when apache is starting, how can I do that? I can?t find any documentation on priority or order for startup scripts. The rcorder(8) page will help you out. Note the PROVIDE and REQUIRE keywords.

Re: priority or order for /usr/local/etc/rc.d scripts?

2008-06-30 Thread Paul Schmehl
--On June 30, 2008 4:37:47 PM -0400 fred <[EMAIL PROTECTED]> wrote: Hi guys, Basically, I have 2 scripts in the folder “/usr/local/etc/rc.d/” Resin.sh and apache.sh I need resin to be started when apache is starting, how can I do that? I can’t find any documentation on prior

Re: priority or order for /usr/local/etc/rc.d scripts?

2008-06-30 Thread Derek Ragona
At 03:37 PM 6/30/2008, fred wrote: Hi guys, Basically, I have 2 scripts in the folder "/usr/local/etc/rc.d/" Resin.sh and apache.sh I need resin to be started when apache is starting, how can I do that? I can't find any documentation on priority or order for startup scr

priority or order for /usr/local/etc/rc.d scripts?

2008-06-30 Thread fred
Hi guys, Basically, I have 2 scripts in the folder “/usr/local/etc/rc.d/” Resin.sh and apache.sh I need resin to be started when apache is starting, how can I do that? I can’t find any documentation on priority or order for startup scripts. I have tried adding a line at the end of

Re: FreeBSD 7.0 not executing /usr/local/etc/rc.d/ at startup

2008-04-19 Thread Jeff Royle
onf so it is not needed. I am wondering if this is causing something in rc confusion. If that doesn't work. Turn off everything but 1 or 2 (at most) from /usr/local/etc/rc.d scripts see if you can narrow it down. Cheers, Jeff ___ freebsd-question

Re: [solved] FreeBSD 7.0 not executing /usr/local/etc/rc.d/ at startup

2008-04-19 Thread Marco Beishuizen
On Sat, 19 Apr 2008 17:40:13 +0300 Manolis Kiagias <[EMAIL PROTECTED]> wrote: > Ah!!! It just clicked! You got a lot of _enable="NO" > This is rather unusual - you usually override something from > /etc/defaults/rc.conf with a "YES" > > Your /etc/defaults/rc.conf has missing entries. It probably

Re: FreeBSD 7.0 not executing /usr/local/etc/rc.d/ at startup

2008-04-19 Thread Manolis Kiagias
Marco Beishuizen wrote: On Sat, 19 Apr 2008 17:20:36 +0300 Manolis Kiagias <[EMAIL PROTECTED]> wrote: securelevel -1 is fine. This is the default: quote from init(8): -1Permanently insecure mode - always run the system in level 0 mode. This is the default initial value. Your problem

Re: FreeBSD 7.0 not executing /usr/local/etc/rc.d/ at startup

2008-04-19 Thread Marco Beishuizen
On Sat, 19 Apr 2008 17:20:36 +0300 Manolis Kiagias <[EMAIL PROTECTED]> wrote: > securelevel -1 is fine. This is the default: > quote from init(8): > > -1Permanently insecure mode - always run the system in level 0 > mode. This is the default initial value. > > Your problem lies elsewhere. I

Re: FreeBSD 7.0 not executing /usr/local/etc/rc.d/ at startup

2008-04-19 Thread Manolis Kiagias
Marco Beishuizen wrote: On Sat, 19 Apr 2008 07:44:59 -0600 Eric <[EMAIL PROTECTED]> wrote: are you changing the kernel security level in your rc.conf file? if so, comment it out and reboot. that was an issue i had on a 6.x box recently and commenting out the security level change fixed it

Re: FreeBSD 7.0 not executing /usr/local/etc/rc.d/ at startup

2008-04-19 Thread Marco Beishuizen
On Sat, 19 Apr 2008 07:44:59 -0600 Eric <[EMAIL PROTECTED]> wrote: > are you changing the kernel security level in your rc.conf file? if > so, comment it out and reboot. that was an issue i had on a 6.x box > recently and commenting out the security level change fixed it When I do a "sysctl -a |

Re: FreeBSD 7.0 not executing /usr/local/etc/rc.d/ at startup

2008-04-19 Thread Marco Beishuizen
On Sat, 19 Apr 2008 07:44:59 -0600 Eric <[EMAIL PROTECTED]> wrote: > are you changing the kernel security level in your rc.conf file? if > so, comment it out and reboot. that was an issue i had on a 6.x box > recently and commenting out the security level change fixed it No, I didn't change that.

Re: FreeBSD 7.0 not executing /usr/local/etc/rc.d/ at startup

2008-04-19 Thread Eric
searching it seems that none of the scripts in /usr/local/etc/rc.d/ are being executed at startup. All scripts have the extension .sh, have permission 755 and in rc.conf I have local_startup="/usr/local/etc/rc.d". I have no clue why they are not being executed. are you changing the kernel

Re: FreeBSD 7.0 not executing /usr/local/etc/rc.d/ at startup

2008-04-19 Thread Marco Beishuizen
d > - avahi > > They are all gnome related. I have in my rc.conf: oss_enable="YES", > hald_enable="YES", avahi_daemon_enable="YES and dbus_enable="YES". The > gnome FAQ mentiones to put gnome_enable="YES" in the rc.conf but that > doesn&

Re: /usr/local/etc/rc.d/ scripts and non-root user

2008-02-11 Thread Alex Zbyslaw
Matthew Seaman wrote: [EMAIL PROTECTED] wrote: On Wed, 06 Feb 2008, Alex Zbyslaw wrote Setuid/gid bits on shell scripts aren't considered safe, however and may even be disabled. THERE IS NO REASON FOR THIS, JUST USE THE FILE-SYSTEM TO PROTECT THE FILES (MAKE THEM NOT WRITEABLE)

Re: /usr/local/etc/rc.d/ scripts and non-root user

2008-02-10 Thread Jonathan McKeown
On Sunday 10 February 2008 11:13, Matthew Seaman wrote: > [EMAIL PROTECTED] wrote: > > On Wed, 06 Feb 2008, Alex Zbyslaw wrote > > SNIP > > > >> Setuid/gid bits on shell scripts aren't considered safe, however and may > >> even be disabled. > > > > THERE IS NO REASON FOR THIS,

Re: /usr/local/etc/rc.d/ scripts and non-root user

2008-02-10 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 [EMAIL PROTECTED] wrote: > On Wed, 06 Feb 2008, Alex Zbyslaw wrote > SNIP >> Setuid/gid bits on shell scripts aren't considered safe, however and may >> even be disabled. > THERE IS NO REASON FOR THIS, JUST USE THE FILE-SYSTEM

Re: /usr/local/etc/rc.d/ scripts and non-root user

2008-02-10 Thread [EMAIL PROTECTED]
On Wed, 06 Feb 2008, Alex Zbyslaw wrote SNIP > Setuid/gid bits on shell scripts aren't considered safe, however and may > even be disabled. THERE IS NO REASON FOR THIS, JUST USE THE FILE-SYSTEM TO PROTECT THE FILES (MAKE THEM NOT WRITEABLE). Scripts are no more susceptible t

Re: /usr/local/etc/rc.d/ scripts and non-root user

2008-02-06 Thread RW
to whoever without a password, and api can su to api > without a password, and everyone else gets prompted. It's actually built into /etc/rc.subr, the subversion server script is a simple example of starting a daemon with a different user: $ grep -v "^#" /usr/local/etc/rc

Re: /usr/local/etc/rc.d/ scripts and non-root user

2008-02-06 Thread Alex Zbyslaw
Zbigniew Szalbot wrote: I have never really understood the thing about setuids, gid and etc. :) I am not planning a restart so won't try it but I am pretty sure that logs are created by root unless the api is started manually. No big deal really but thanks for all the suggestions! It's very s

Re: /usr/local/etc/rc.d/ scripts and non-root user

2008-02-06 Thread Alex Zbyslaw
to use cron for automatic startups, which Lowell rightly pointed out to me. I just loved the simplicity of symlinking sh scripts against /usr/local/etc/rc.d/ :) I personally much prefer scripts in rc.d because it's much easier to migrate than crontabs, and if I never use a crontab I always

Re: /usr/local/etc/rc.d/ scripts and non-root user

2008-02-06 Thread Zbigniew Szalbot
2008/2/6, Alex Zbyslaw <[EMAIL PROTECTED]>: > Zbigniew Szalbot wrote: > > >I have looked at my /usr/local/etc/rc.d/ and realized that the symlink > >I put there has the root as owner. It all works but I would rather use > >a non-root user for to run that script. >

Re: /usr/local/etc/rc.d/ scripts and non-root user

2008-02-06 Thread Alex Zbyslaw
Zbigniew Szalbot wrote: I have looked at my /usr/local/etc/rc.d/ and realized that the symlink I put there has the root as owner. It all works but I would rather use a non-root user for to run that script. $ ls -l /usr/local/etc/rc.d/ lrwxr-xr-x 1 root wheel40 May 9 2007 sender.sh

Re: /usr/local/etc/rc.d/ scripts and non-root user

2008-02-06 Thread Zbigniew Szalbot
Hello Alex, 2008/2/6, Alex Zbyslaw <[EMAIL PROTECTED]>: > Zbigniew Szalbot wrote: > > >Hello, > > > >I have looked at my /usr/local/etc/rc.d/ and realized that the symlink > >I put there has the root as owner. It all works but I would rather use >

Re: /usr/local/etc/rc.d/ scripts and non-root user

2008-02-06 Thread Alex Zbyslaw
Zbigniew Szalbot wrote: Hello, I have looked at my /usr/local/etc/rc.d/ and realized that the symlink I put there has the root as owner. It all works but I would rather use a non-root user for to run that script. $ ls -l /usr/local/etc/rc.d/ lrwxr-xr-x 1 root wheel40 May 9 2007

Re: /usr/local/etc/rc.d/ scripts and non-root user

2008-02-06 Thread Lowell Gilbert
"Zbigniew Szalbot" <[EMAIL PROTECTED]> writes: > I have looked at my /usr/local/etc/rc.d/ and realized that the symlink > I put there has the root as owner. It all works but I would rather use > a non-root user for to run that script. > > $ ls -l /usr/local/etc/rc

/usr/local/etc/rc.d/ scripts and non-root user

2008-02-06 Thread Zbigniew Szalbot
Hello, I have looked at my /usr/local/etc/rc.d/ and realized that the symlink I put there has the root as owner. It all works but I would rather use a non-root user for to run that script. $ ls -l /usr/local/etc/rc.d/ lrwxr-xr-x 1 root wheel40 May 9 2007 sender.sh -> /usr/home/api/sen

Re: Problem in /usr/local/etc/rc.d [SOLVED]

2007-12-28 Thread Manolis Kiagias
Samba tdb files: . . . . . . . done Starting Init Starting Samba Removing stale Samba tdb files: . . . . . . . done - i have only 2 scripts in /usr/local/etc/rc.d: init.sh, which starts vsftpd and a dyndns client and samba.sh. As you can see

Re: Problem in /usr/local/etc/rc.d [SOLVED]

2007-12-28 Thread Mario Lobo
at I should look for? > > > > Thanks, > > > > P.S. - I wish you all a happy 2008 ! My guts keep telling me that this is > > going to be a great year for FreeBSD !! > > Check your /etc/rc.conf settings, e.g. local_startup or whatever > controls rc.d directories. Either

Re: Problem in /usr/local/etc/rc.d

2007-12-28 Thread Kris Kennaway
stale Samba tdb files: . . . . . . . done - i have only 2 scripts in /usr/local/etc/rc.d: init.sh, which starts vsftpd and a dyndns client and samba.sh. As you can see, the scripts in that directory are beeing ran twice !. I looked up and down the server

Problem in /usr/local/etc/rc.d

2007-12-28 Thread Mario Lobo
: . . . . . . . done - i have only 2 scripts in /usr/local/etc/rc.d: init.sh, which starts vsftpd and a dyndns client and samba.sh. As you can see, the scripts in that directory are beeing ran twice !. I looked up and down the server (/etc/init.d

Re: /usr/local/etc/rc.d startup scripts

2007-03-07 Thread RW
On Wed, 7 Mar 2007 13:40:09 -0600 Dan Nelson <[EMAIL PROTECTED]> wrote: > In the last episode (Mar 07), Don O'Neil said: > > Are there any special naming requirements for scripts in > > /usr/local/etc/rc.d for 6.1? > > > > Someone is telling me the

Re: /usr/local/etc/rc.d startup scripts

2007-03-07 Thread Roland Smith
On Wed, Mar 07, 2007 at 10:58:22AM -0800, Don O'Neil wrote: > Are there any special naming requirements for scripts in /usr/local/etc/rc.d > for 6.1? > > Someone is telling me they need to have a .sh suffix to startup correctly, > but in past versions of FreeBSD anything yo

Re: /usr/local/etc/rc.d startup scripts

2007-03-07 Thread Dan Nelson
In the last episode (Mar 07), Don O'Neil said: > Are there any special naming requirements for scripts in > /usr/local/etc/rc.d for 6.1? > > Someone is telling me they need to have a .sh suffix to startup > correctly, but in past versions of FreeBSD anything you put in there

Re: /usr/local/etc/rc.d startup scripts

2007-03-07 Thread Josh Carroll
Someone is telling me they need to have a .sh suffix to startup correctly, but in past versions of FreeBSD anything you put in there would run as long as it was executable. It need not have an sh extension. The MySQL port, for example, installs /usr/local/etc/rc.d/mysql-server, which works fine

/usr/local/etc/rc.d startup scripts

2007-03-07 Thread Don O'Neil
Are there any special naming requirements for scripts in /usr/local/etc/rc.d for 6.1? Someone is telling me they need to have a .sh suffix to startup correctly, but in past versions of FreeBSD anything you put in there would run as long as it was executable. Just trying to confirm the correct

Re: diskless boot /usr/local/etc/rc.d/ scripts do not run, why?

2007-02-01 Thread Artem Kazakov
Hi, Brooks! Thanks for the advice, it helped! > I have to say that I use this loader.rc for network boot: > load /boot/kernel/kernel > echo \007\007 > set console="vidconsole" > autoboot Do you by chance have a /boot.config? It sounds like your system is probably running on a serial console.

Re: diskless boot /usr/local/etc/rc.d/ scripts do not run, why?

2007-02-01 Thread Brooks Davis
On Thu, Feb 01, 2007 at 11:23:23AM +0900, Artem Kazakov wrote: > Hello everyone, > > I'm using 6-stable on 4 amd64 machines. One of them has FreeBSD on its > local hard drive and others are booted via network with PXE. > But I encounter that /usr/local/etc/rc.d/* are not

diskless boot /usr/local/etc/rc.d/ scripts do not run, why?

2007-01-31 Thread Artem Kazakov
Hello everyone, I'm using 6-stable on 4 amd64 machines. One of them has FreeBSD on its local hard drive and others are booted via network with PXE. But I encounter that /usr/local/etc/rc.d/* are not executed during the boot process? Is there some kind of option to change this? Or may

Re: '/usr/local/etc/rc.d/squid stop' problem

2007-01-16 Thread applecom
On Tue, 16 Jan 2007 21:51:08 +0500, Dan Nelson <[EMAIL PROTECTED]> wrote: Try shutting squid down manually from a shell prompt, then switch to another window/vty and take a look at /usr/local/squid/logs/cache.log . My guess is it's waiting for an active client connection to exit. The default

Re: '/usr/local/etc/rc.d/squid stop' problem

2007-01-16 Thread [LoN]Kamikaze
[EMAIL PROTECTED] wrote: > It seems something strange with squid-2.6.6 on my FreeBSD 6.2-PRERELEASE > box. > After running 'usr/local/etc/rc.d/squid stop' (and therefore during > system shutdown on 'Ctrl+Alt+Delete' or ACPI power button pushing) I see >

Re: '/usr/local/etc/rc.d/squid stop' problem

2007-01-16 Thread Dan Nelson
In the last episode (Jan 16), [EMAIL PROTECTED] said: > It seems something strange with squid-2.6.6 on my FreeBSD > 6.2-PRERELEASE box. After running 'usr/local/etc/rc.d/squid stop' > (and therefore during system shutdown on 'Ctrl+Alt+Delete' or ACPI > power but

'/usr/local/etc/rc.d/squid stop' problem

2007-01-16 Thread applecom
It seems something strange with squid-2.6.6 on my FreeBSD 6.2-PRERELEASE box. After running 'usr/local/etc/rc.d/squid stop' (and therefore during system shutdown on 'Ctrl+Alt+Delete' or ACPI power button pushing) I see the following: Stopping squid. Waiting for PIDS: 5

Re: where are /usr/local/etc/rc.d init scripts run from?

2006-12-24 Thread Michael P. Soulier
On 12/23/06, Kevin Brunelle <[EMAIL PROTECTED]> wrote: I was unintentionally confusing in my answer. Sorry about that. If your startup script is in the old style, it will be handled by /etc/rc.d/localpkg when that is called during the boot process. That is ONLY if it's the old style. I shoul

Re: where are /usr/local/etc/rc.d init scripts run from?

2006-12-23 Thread Kevin Brunelle
> So rcorder is not used for the rc scripts in /usr/local/etc/rc.d? That > explains much, since I have a runsvstat.sh script needed to start > runit, and a script to start one of its services starts with an 'm' > and is executing first, which I don't want. > >

Re: where are /usr/local/etc/rc.d init scripts run from?

2006-12-23 Thread Michael P. Soulier
On 12/23/06, Kevin Brunelle <[EMAIL PROTECTED]> wrote: They are called from /etc/rc.d/localpkg if they are the old style. The directories searched are defined with local_startup (which defaults to: /usr/local/etc/rc.d /usr/X11R6/etc/rc.d). Ok, looking in localpkg, I see this. pkg

Re: where are /usr/local/etc/rc.d init scripts run from?

2006-12-23 Thread Kevin Brunelle
ail" > files=`rcorder ${skip} /etc/rc.d/* 2>/dev/null` > > for _rc_elem in ${files}; do > run_rc_script ${_rc_elem} ${_boot} > done > > So rcorder is run over /etc/rc.d/*. > > When is the same done for /usr/local/etc/rc.d/*? > > Thanks, > Mike They

Re: where are /usr/local/etc/rc.d init scripts run from?

2006-12-23 Thread Andrew Pantyukhin
rcorder ${skip} /etc/rc.d/* 2>/dev/null` for _rc_elem in ${files}; do run_rc_script ${_rc_elem} ${_boot} done So rcorder is run over /etc/rc.d/*. When is the same done for /usr/local/etc/rc.d/*? 1. grep for rcorder in rc 2. grep for local_rc in rc.subr ___

where are /usr/local/etc/rc.d init scripts run from?

2006-12-23 Thread Michael P. Soulier
; do run_rc_script ${_rc_elem} ${_boot} done So rcorder is run over /etc/rc.d/*. When is the same done for /usr/local/etc/rc.d/*? Thanks, Mike -- Michael P. Soulier <[EMAIL PROTECTED]> "Any intelligent fool can make things bigger and more complex... It takes a touch of genius

/usr/local/etc/rc.d and role accounts

2006-04-14 Thread Mike Hunter
Hi, I'm hoping to get into the spirit of the new rc.d script specs (REQUIRES, PROVIDES, command=, etc) on a new server I'm building. The old script I was using looked like this: /usr/local/etc/rc.d/start-all-foo.sh [ -x /usr/local/bin/foo ] && su foo-role -c "/usr/local

Re: /usr/local/etc/rc.d and role accounts

2006-04-14 Thread Andrey V. Semyonov
Andrey V. Semyonov wrote: The most terrible thing is than you can't extract a value from a variable, which you name by some dynamic sting (you can't extract a variable by name set in other variable partly or the whole) Sorry, I'm too hurry. if ! /bin/test -z $(eval echo \$${name}${common_var

Re: /usr/local/etc/rc.d and role accounts

2006-04-14 Thread Andrey V. Semyonov
Mike Hunter wrote: Hi, I'm hoping to get into the spirit of the new rc.d script specs (REQUIRES, PROVIDES, command=, etc) on a new server I'm building. The old script I was using looked like this: I have several questions about how to replicate this behavior. I'm still deciding whether I'm wi

/usr/local/etc/rc.d and role accounts

2006-04-13 Thread Mike Hunter
Hi, I'm hoping to get into the spirit of the new rc.d script specs (REQUIRES, PROVIDES, command=, etc) on a new server I'm building. The old script I was using looked like this: /usr/local/etc/rc.d/start-all-foo.sh [ -x /usr/local/bin/foo ] && su foo-role -c "/usr/local

Re: /usr/local/etc/rc.d not running for jail

2006-03-08 Thread Francisco Reyes
Philip Hallstrom writes: Put the following into the jail's /etc/rc.conf: early_late_divider="NETWORKING" Thanks! That worked. That worked for me. My memory is this isn't a *real* solution, but that it does the trick (going off some posts I found on the issue when this happened to me) It

Re: /usr/local/etc/rc.d not running for jail

2006-03-08 Thread Philip Hallstrom
I have a jail, running in FreeBSD 6, which starts sshd and syslogd, but doesn't start any of the programs from /usr/local/etc/rc.d All the appropriate variables are in /etc/rc.conf for the various programs (postfix, spamd, clamsmtp, freshclam). I am able to run the programs manuall

/usr/local/etc/rc.d not running for jail

2006-03-08 Thread Francisco Reyes
I have a jail, running in FreeBSD 6, which starts sshd and syslogd, but doesn't start any of the programs from /usr/local/etc/rc.d All the appropriate variables are in /etc/rc.conf for the various programs (postfix, spamd, clamsmtp, freshclam). I am able to run the programs manually by

Script in /usr/local/etc/rc.d doesn't run

2005-12-30 Thread Francisco Reyes
I have one script in /usr/local/etc/rc.d that doesn't run. Any ideas why? It is marked as executable ls -l /usr/local/etc/rc.d/ -r-xr-xr-x 1 root wheel 441B Dec 30 20:36 start-program.sh The script is just: #!/bin/sh log="/var/log/program.log" echo -&

Re: Is rcorder working under /usr/local/etc/rc.d?

2005-10-17 Thread Brooks Davis
On Sun, Oct 16, 2005 at 11:16:12AM +0930, Daniel O'Connor wrote: > On Sun, 16 Oct 2005 04:42, Lefteris Tsintjelis wrote: > > I am getting all these "no provider" and rcorder doesn't seem to > > work properly under /usr/local/etc/rc.d. Services seem to start >

Re: Is rcorder working under /usr/local/etc/rc.d?

2005-10-15 Thread Daniel O'Connor
On Sun, 16 Oct 2005 04:42, Lefteris Tsintjelis wrote: > I am getting all these "no provider" and rcorder doesn't seem to > work properly under /usr/local/etc/rc.d. Services seem to start > alphabetically and not in the right order specified. The keywords > REQUIRE, PROVI

Re: Is rcorder working under /usr/local/etc/rc.d?

2005-10-15 Thread Giorgos Keramidas
On 2005-10-16 00:41, Lefteris Tsintjelis <[EMAIL PROTECTED]> wrote: > Giorgos Keramidas wrote: > >% flame:/home/keramida$ rcorder /etc/rc.d/* /usr/local/etc/rc.d/* >/dev/null > >% rcorder: Circular dependency on provision `mountcritremote' in file > >`/etc/rc.d

Re: Is rcorder working under /usr/local/etc/rc.d?

2005-10-15 Thread Lefteris Tsintjelis
Giorgos Keramidas wrote: [...] These look like stuff that is "provided" by /etc/rc.d/* scripts. Try including all the scripts in the rcorder command line: % flame:/home/keramida$ rcorder /usr/local/etc/rc.d/* >/dev/null % rcorder: file `/usr/local/etc/rc.d/samba.sh'

Re: Is rcorder working under /usr/local/etc/rc.d?

2005-10-15 Thread Giorgos Keramidas
On 2005-10-15 22:12, Lefteris Tsintjelis <[EMAIL PROTECTED]> wrote: > I am getting all these "no provider" and rcorder doesn't seem to work > properly under /usr/local/etc/rc.d. Services seem to start > alphabetically and not in the right order specified. The keywo

Re: Is rcorder working under /usr/local/etc/rc.d?

2005-10-15 Thread Giorgos Keramidas
On 2005-10-15 22:12, Lefteris Tsintjelis <[EMAIL PROTECTED]> wrote: > I am getting all these "no provider" and rcorder doesn't seem to work > properly under /usr/local/etc/rc.d. Services seem to start > alphabetically and not in the right order specified. The keywo

Is rcorder working under /usr/local/etc/rc.d?

2005-10-15 Thread Lefteris Tsintjelis
I am getting all these "no provider" and rcorder doesn't seem to work properly under /usr/local/etc/rc.d. Services seem to start alphabetically and not in the right order specified. The keywords REQUIRE, PROVIDE, BEFORE and KEYWORD seem to be ignored. Services like SERVERS, NETWORK

Re: /usr/local/etc/rc.d and rcNG style scripts question

2005-05-31 Thread Lowell Gilbert
"Chad Leigh -- Shire.Net LLC" <[EMAIL PROTECTED]> writes: > I read the handbook and the man page for rc and one question remains. > > For scripts in /usr/local/etc/rc.d it appears that the assumption is > that all scripts are old style and so, no matter if they are

/usr/local/etc/rc.d and rcNG style scripts question

2005-05-28 Thread Chad Leigh -- Shire.Net LLC
I read the handbook and the man page for rc and one question remains. For scripts in /usr/local/etc/rc.d it appears that the assumption is that all scripts are old style and so, no matter if they are rcGN style scripts or not, they will all run in lexographic order, right? Thanks Chad

Re: /usr/local/etc/rc.d scripts: echo on startup

2005-03-10 Thread Mike Hauber
On Thursday 10 March 2005 06:45 am, Fafa Diliha Romanova wrote: > hello. > > i'm just wondering how to deal with the way the rc.d scripts > echo on startup. like, some of the rc.d scripts contain the > echo " daemon", while some echo "daemon", so on startup whereas > it should look like: > > daemon

Re: /usr/local/etc/rc.d scripts: echo on startup

2005-03-10 Thread Giorgos Keramidas
;, > so on startup whereas it should look like: > > daemon daemon deamon > > it may look like: > > daemondaemon daemon 1.2 Loaded successfully!daemon > > is there a uniform way to identify echos and make them display properly? > thanks! I usually edit the offending sc

/usr/local/etc/rc.d scripts: echo on startup

2005-03-10 Thread Fafa Diliha Romanova
hello. i'm just wondering how to deal with the way the rc.d scripts echo on startup. like, some of the rc.d scripts contain the echo " daemon", while some echo "daemon", so on startup whereas it should look like: daemon daemon deamon it may look like: daemondaemon daemon 1.2 Loaded successfull

Re: /usr/local/etc/rc.d vs /etc/rc.conf question

2005-01-20 Thread Gregor Mosheh
> >> On my 4.10 box, there is a mysql-server script in > /usr/local/etc/rc.d > >> and nothing > >> in /etc/rc.conf, yet mysql-server starts up a > boot time. > >> Why? (the following is true for 4.x) Check the /etc/defaults/rc.conf file You&#x

Re: /usr/local/etc/rc.d vs /etc/rc.conf question

2005-01-20 Thread Erik Norgaard
Toomas Aas wrote: Andy Firman wrote: On my 4.10 box, there is a mysql-server script in /usr/local/etc/rc.d and nothing in /etc/rc.conf, yet mysql-server starts up a boot time. Why? Your mysql-server port was probably installed before 31.10.2004. It was modified to use rc.conf variables at

Re: /usr/local/etc/rc.d vs /etc/rc.conf question

2005-01-19 Thread Toomas Aas
Andy Firman wrote: On my 4.10 box, there is a mysql-server script in /usr/local/etc/rc.d and nothing in /etc/rc.conf, yet mysql-server starts up a boot time. Why? Your mysql-server port was probably installed before 31.10.2004. It was modified to use rc.conf variables at that date (see /usr

Re: /usr/local/etc/rc.d vs /etc/rc.conf question

2004-12-18 Thread Andy Firman
reeBSD box and there is a > > >proftpd.sh script in the /usr/local/etc/rc.d directory. > > > > > >There is also this entry in /etc/rc.conf: > > >proftpd_enable="YES" > > > > > >There is no need for entries in /etc/rc.conf > > &g

Re: /usr/local/etc/rc.d vs /etc/rc.conf question

2004-12-02 Thread Dick Davies
* Paul Schmehl <[EMAIL PROTECTED]> [1210 17:10]: > --On Thursday, December 02, 2004 07:39:00 AM -0900 Andy Firman > <[EMAIL PROTECTED]> wrote: > > > > >I just took over a FreeBSD box and there is a > >proftpd.sh script in the /usr/local/etc/rc.d directory.

Re: /usr/local/etc/rc.d vs /etc/rc.conf question

2004-12-02 Thread Paul Schmehl
--On Thursday, December 02, 2004 07:39:00 AM -0900 Andy Firman <[EMAIL PROTECTED]> wrote: I just took over a FreeBSD box and there is a proftpd.sh script in the /usr/local/etc/rc.d directory. There is also this entry in /etc/rc.conf: proftpd_enable="YES" There is no need for

Re: /usr/local/etc/rc.d vs /etc/rc.conf question

2004-12-02 Thread Martin Hepworth
Andy err no. the entry in /usr/local/etc/rc.d will read the rc.conf to get variables. Normally done thisway when program is installed from ports rather than hand compiled... -- Martin Hepworth Snr Systems Administrator Solid State Logic Tel: +44 (0)1865 842300 Andy Firman wrote: I just took

/usr/local/etc/rc.d vs /etc/rc.conf question

2004-12-02 Thread Andy Firman
I just took over a FreeBSD box and there is a proftpd.sh script in the /usr/local/etc/rc.d directory. There is also this entry in /etc/rc.conf: proftpd_enable="YES" There is no need for entries in /etc/rc.conf if the script exists in /usr/local/etc/rc.d ri

Re: Problem with Swatch script in /usr/local/etc/rc.d

2004-10-15 Thread Henri Prudhomme
--- Matthew Seaman <[EMAIL PROTECTED]> wrote: > Since your script can start up Swatch when run by > hand, but not during > system boot, I suspect the problem is either to do > with having or not > having a tty at startup time, or else to do with > boot order -- maybe > if you try changing the scri

Re: Problem with Swatch script in /usr/local/etc/rc.d

2004-10-15 Thread Matthew Seaman
On Thu, Oct 14, 2004 at 09:47:03PM -0700, Henri Prudhomme wrote: > By RTFM my understanding is that for 4.10 nothing > special is needed. Just make sure the script is in the > rc.d directory, is executable (755) and ends with .sh. > The script is owned by root and wheel. It depends. More and mor

Problem with Swatch script in /usr/local/etc/rc.d

2004-10-14 Thread Henri Prudhomme
I am running freebsd 4.10. I have a case start / stop script for Swatch in /usr/local/etc/rc.d. I can run the script manually as superuser and it works correctly - Swatch correctly starts and stops, and runs as a daemon in the backgound. But when I reboot the server, the Swatch service doesn&#

Re: rcNG/rc_ng, using rcorder in /usr/local/etc/rc.d

2004-09-21 Thread Giorgos Keramidas
ere is rcorder being kicked off on > /usr/local/etc/rc.d to use rcNG... > > I see that /etc/rc.d/localpkg is still skimming for *.sh and running > them, and not doing the rcorder method. Correct. The rcorder method is used only for /etc/rc.d scripts. See: $ grep -n rcorder /etc/rc

rcNG/rc_ng, using rcorder in /usr/local/etc/rc.d

2004-09-20 Thread David P. Discher
Learn something new every day, just learning the internals of FreeBSD-5.2.1 (have been sticking to the 4.x-STABLEs) and rolling out my first 5.x system. rcNG is really nice, but where is rcorder being kicked off on /usr/local/etc/rc.d to use rcNG... I see that /etc/rc.d/localpkg is still

Re: Applications starting problem (from /usr/local/etc/rc.d/) after upgrade

2004-07-21 Thread /root/of/all/evil
> I'm not sure we are talking about the same thing. Is the "x" > executable bit set when you do an ls -l in /usr/local/etc/rc.d? > > # ls -l /usr/local/etc/rc.d > -r-xr-xr-x 1 root wheel635 Jun 15 05:58 apache.sh >^ ^ ^ > > Are these bits set

Re: Applications starting problem (from /usr/local/etc/rc.d/) after upgrade

2004-07-21 Thread Warren Block
, but if I add them (I mean 'them' == the full path to their starting scripts in /usr/local/etc/rc.d/) to the end of apache`s script, then they are starting.. Are they all set to executable (chmod +x)? Yes, they all are executable - if I add them to the end of the only script that i

  1   2   >