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(8). > I need resin to be start

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 priority or order

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 scripts. I have tr

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 r

Re: rc.d scripts not being run at shutdown.

2008-02-12 Thread Lowell Gilbert
RW <[EMAIL PROTECTED]> writes: > On Mon, 11 Feb 2008 21:55:28 + > RW <[EMAIL PROTECTED]> wrote: > >> On Mon, 11 Feb 2008 14:19:21 -0500 >> Lowell Gilbert <[EMAIL PROTECTED]> wrote: >> >> > RW <[EMAIL PROTECTED]> writes: >> >> > > I could imagine screwing-up the operation of rc.shutdown with

Re: rc.d scripts not being run at shutdown.

2008-02-11 Thread RW
On Mon, 11 Feb 2008 21:55:28 + RW <[EMAIL PROTECTED]> wrote: > On Mon, 11 Feb 2008 14:19:21 -0500 > Lowell Gilbert <[EMAIL PROTECTED]> wrote: > > > RW <[EMAIL PROTECTED]> writes: > > > > I could imagine screwing-up the operation of rc.shutdown with a > > > syntax error, but I don't see how I

Re: rc.d scripts not being run at shutdown.

2008-02-11 Thread RW
On Mon, 11 Feb 2008 14:19:21 -0500 Lowell Gilbert <[EMAIL PROTECTED]> wrote: > RW <[EMAIL PROTECTED]> writes: > > I could imagine screwing-up the operation of rc.shutdown with a > > syntax error, but I don't see how I could stop it being run at all. > > As I understand it rc.shutdown is run from

Re: rc.d scripts not being run at shutdown.

2008-02-11 Thread Jonathan Chen
On Mon, Feb 11, 2008 at 06:06:47PM +, RW wrote: > On Sun, 10 Feb 2008 04:02:15 + > RW <[EMAIL PROTECTED]> wrote: > > > > > Afer putting in some extra logging to check something, I've just > > noticed that my rc.d scripts are not being run

Re: rc.d scripts not being run at shutdown.

2008-02-11 Thread Lowell Gilbert
RW <[EMAIL PROTECTED]> writes: > On Sun, 10 Feb 2008 04:02:15 + > RW <[EMAIL PROTECTED]> wrote: > >> >> Afer putting in some extra logging to check something, I've just >> noticed that my rc.d scripts are not being run at shutdown. >> &g

Re: rc.d scripts not being run at shutdown.

2008-02-11 Thread RW
On Sun, 10 Feb 2008 04:02:15 + RW <[EMAIL PROTECTED]> wrote: > > Afer putting in some extra logging to check something, I've just > noticed that my rc.d scripts are not being run at shutdown. > > By way of confirmation, my entropy file, which is written out by

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

rc.d scripts not being run at shutdown.

2008-02-09 Thread RW
Afer putting in some extra logging to check something, I've just noticed that my rc.d scripts are not being run at shutdown. By way of confirmation, my entropy file, which is written out by an rc.d script, has not been written to for a week (I shut-down most nights). I don't re

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

2008-02-06 Thread RW
On Wed, 06 Feb 2008 17:09:50 + Alex Zbyslaw <[EMAIL PROTECTED]> wrote: > 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 know > where to look. > > It looks to me like you shouldn't be starting the demon as us

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
Zbigniew Szalbot wrote: Thank you. I realized this was the case before I wrote previous message. The thing is the real file is owned by user api. However, when the application is started following a reboot, its logs are created by user root, whereas when I start it by hand as user api, its logs

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. > > > >$ ls -l /usr/local/etc/rc.d/

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 -> /u

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 > >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: 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.

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.d/ > lrwxr-xr-x 1 root wheel

/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/sender/

Re: creating rc.d scripts

2007-03-26 Thread Jim Stapleton
oops, sent a reply to the wrong list a bit ago... Anyway, it is still not working. I forgot to mentions, sorry, doing $ /usr/local/etc/rc.d/sb_server start works just fine. I used "/usr/bin/env python" because I would like to add this to the port that installs the server this script starts, an

Re: rc.d scripts

2007-03-26 Thread RW
On Sun, 25 Mar 2007 23:03:38 -0400 Kevin Brunelle <[EMAIL PROTECTED]> wrote: > > >Does anyone know how to make a script in /etc/rc.d run last? For > > >instance I want dhclient to be the last script in /etc/rc.d/ to > > >run. Any help is much appreciated. > > > > This may have already been answe

RE: rc.d scripts

2007-03-26 Thread Rick Apichairuk
> -Original Message- > From: [EMAIL PROTECTED] [mailto:owner-freebsd- > [EMAIL PROTECTED] On Behalf Of Jack Stone > Sent: Sunday, March 25, 2007 8:09 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: rc.d scripts > > >From: Tom Grove <[EMAIL PROTE

Re: rc.d scripts

2007-03-25 Thread Kevin Brunelle
> >Does anyone know how to make a script in /etc/rc.d run last? For instance > >I want dhclient to be the last script in /etc/rc.d/ to run. Any help is > >much appreciated. > > This may have already been answered by others, but I believe just rename > the script with a prefix of "z" for example:

RE: rc.d scripts

2007-03-25 Thread Jack Stone
From: Tom Grove <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: rc.d scripts Date: Fri, 23 Mar 2007 09:15:29 -0400 Does anyone know how to make a script in /etc/rc.d run last? For instance I want dhclient to be the last script in /etc/rc.d/ to run. Any help is much appreciated.

Re: rc.d scripts

2007-03-23 Thread RW
On Fri, 23 Mar 2007 09:15:29 -0400 Tom Grove <[EMAIL PROTECTED]> wrote: > Does anyone know how to make a script in /etc/rc.d run last? For > instance I want dhclient to be the last script in /etc/rc.d/ to run. > Any help is much appreciated. Just have it require the last script, which is bgfs

rc.d scripts

2007-03-23 Thread Tom Grove
Does anyone know how to make a script in /etc/rc.d run last? For instance I want dhclient to be the last script in /etc/rc.d/ to run. Any help is much appreciated. -Tom ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/

Re: creating rc.d scripts

2007-03-22 Thread Jim Stapleton
This: (0) ~ > sudo rcorder /usr/local/etc/rc.d/* /etc/rc.d/* /etc/rc.d/dumpon /etc/rc.d/initrandom /etc/rc.d/geli /etc/rc.d/gbde /etc/rc.d/encswap /etc/rc.d/ccd /etc/rc.d/swap1 /etc/rc.d/mdconfig /etc/rc.d/ramdisk /etc/rc.d/early.sh /etc/rc.d/fsck /etc/rc.d/root /etc/rc.d/mountcritlocal /etc/rc.

Re: creating rc.d scripts

2007-03-21 Thread Brian A. Seklecki
what does: $ sudo rcorder /usr/local/etc/rc.d/* /etc/rc.d/* ..look like? ~BAS On Wed, 2007-03-21 at 10:57 -0700, Chuck Swiger wrote: > On Mar 21, 2007, at 10:52 AM, Jim Stapleton wrote: > > I created a script in my /usr/local/etc/rc.d directory, but for some > > reason it doesn't auto start whe

Re: creating rc.d scripts

2007-03-21 Thread Chuck Swiger
On Mar 21, 2007, at 10:52 AM, Jim Stapleton wrote: I created a script in my /usr/local/etc/rc.d directory, but for some reason it doesn't auto start when I start my machine. I added entries to the rc.conf that I thought should work, but they did not. On a related not, my rc.conf file doesn't seem

creating rc.d scripts

2007-03-21 Thread Jim Stapleton
I created a script in my /usr/local/etc/rc.d directory, but for some reason it doesn't auto start when I start my machine. I added entries to the rc.conf that I thought should work, but they did not. On a related not, my rc.conf file doesn't seem to disable autostart of sendmail. Could anyone advi

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 executed during the > boot

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 be I misconf

Problem with local rc.d scripts in 6.0

2006-01-04 Thread Mark Ovens
Since src u/g 5.4->6 the *_enable variables in rc.conf for local rc.d scripts are being ignored. For example, neither lisad (for KDE LAN Browsing) or giftd (for giFT) are starting. In rc.conf I have: lisa_enable="YES" # Lisa daemon for LAN Browsing in Konqueror gift

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

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

2005-03-10 Thread Giorgos Keramidas
On 2005-03-10 06:45, Fafa Diliha Romanova <[EMAIL PROTECTED]> 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"

/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: daemo

FBSD 5.3: path not found error in rc.d scripts

2004-11-30 Thread Erik Norgaard
Hi, I have a freshly installed FreeBSD 5.3, I keep getting an error "path: not found" when rc-scripts are run, this holds both for the base scripts in /etc/rc.d and installed scripts in /usr/local/etc/rc.d - also, the cron job which runs save-entropy every 11 minutes sends this error. But I don

Re: FreeBSD 5 rc.d scripts and /usr/local/etc/rc.d

2004-05-12 Thread Chad Leigh -- Shire.Net LLC
On May 12, 2004, at 5:06 PM, Tim Aslat wrote: In the immortal words of "Chad Leigh -- Shire.Net LLC" <[EMAIL PROTECTED]>... "The best way to handle rc.local, however, is to separate it out into rc.d/ style scripts and place them under /usr/local/etc/rc.d/." That's right So I created an rc.d

Re: FreeBSD 5 rc.d scripts and /usr/local/etc/rc.d

2004-05-12 Thread Tim Aslat
In the immortal words of "Chad Leigh -- Shire.Net LLC" <[EMAIL PROTECTED]>... > "The best way to handle rc.local, however, is to separate it > out into rc.d/ style scripts and place them under > /usr/local/etc/rc.d/." That's right > So I created an rc.d style script for my own service and

FreeBSD 5 rc.d scripts and /usr/local/etc/rc.d

2004-05-12 Thread Chad Leigh -- Shire.Net LLC
Hi In the man pages for rc it says: "The best way to handle rc.local, however, is to separate it out into rc.d/ style scripts and place them under /usr/local/etc/rc.d/." So I created an rc.d style script for my own service and stuck it in /usr/local/etc/rc.d/. It does not have a .sh on t