Re: custom rc.d script not working



On Wed, Dec 06, 2006 at 08:56:37AM +0530, Gobbledegeek wrote:

My script is in /etc/rc.d and it executes - only when I login and find
no zebra process... executing it manually starts zebra allright.

Why should I put it in /usr/local/etc/rc.d ?

Because that is where the system expects to find scripts to
start up at boot time.

////jerry


I think I see a 0.99.5 version in freshports.org. I'll just use that
instead.

Thanks ye all for the help...

Rgrds

On 12/5/06, Jerry McAllister <jerrymc@xxxxxxx> wrote:
On Tue, Dec 05, 2006 at 11:30:41AM +0000, Tom Judge wrote:

Gobbledegeek wrote:
I compiled quagga 0.99.5 from source (not freebsd port) and wrote
this
little script in the /etc/rc.d/zebra file.
-------------------------------
#!/bin/sh

# PROVIDE: zebra
# REQUIRE: NETWORKING

. /etc/rc.subr

name="zebra"
rcvar=${name}_enable
required_files="/usr/local/etc/${name}.conf"
command="/usr/local/sbin/${name}"
command_args="-d"
pidfile="/var/run/${name}.pid"
load_rc_config $name
run_rc_command "$1"
----------------------------------

/etc/rc.conf has zebra_enable="yes"

However it only starts zebra when I execute it manually from
command line. When I boot freebsd, it executes and I see
message in boot screen that zebra is starting, but on login I find
zebra isn't running.
all files in /usr/local/sbin/ for zebra executables are owned by
quagga/quagga user/group.

Once I get this working, I will ofcourse add scripts for ospfd and
bgpd and isisd.. but it beats me why this isn't working...

This is on freebsd 6.2 RC1 i386.

Thanks very much in advance for your help...

PS: Please CC me as I am not subscribed.


First, I presume you mean to say that you put the script
in the '/usr/local/etc/rc.d/' directory and not just /etc/rc.d

Secondly, my most frequent error is error with these is to forget
to make them executable. If the script does not have execute
permission, it is ignored.

////jerry


_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@xxxxxxxxxxx"



--
Rgrds
GobbledeGeek
[Everything but Gobbledegook.. !!]
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Problem with IIS 6.0 serving .NET applications
    ... It's working now because you need to have "scripts and executable" ... > to "None" and I'd get the content of the exe shown in the browser, ... >> Did you set Application & Scripts execute permissions? ... >>> execute permission on that Virutal Directory, ...
    (microsoft.public.inetserver.iis.security)
  • Re: HTTP 403.1 Forbidden: Execute Access Forbidden
    ... This sounds like an Visual InterDev behavior/requirement -- I really have no ... execute ASP script, you MUST have the "Scripts" execute permission [so ... scripts and executables is not necessary to run the default.asp page]). ... IIS is merely doing what you configured. ...
    (microsoft.public.inetserver.iis)
  • [UNIX] cPanel mod_php suexec Taint Vulnerability
    ... Get your security news from a reliable source. ... There exists a security issue in cPanel installed systems due to how ... a user is able to execute arbitrary code ... all PHP scripts are executed as the same user ...
    (Securiteam)
  • Re: Nearly undocumented NT security feature - the solution to executable attachments?
    ... Windows NT users cannot defend from e-mail borne malware, ... KH> Instead of boring you with a lesson on Windows NT security, ... execute access, like in Unix, is distinct from read ... KH> please note that, as I said earlier, this won't stop scripts (except batch ...
    (Bugtraq)
  • Re: There is a new GPS on the block
    ... about how Apache decides which files to serve as text and which to ... scripts, too, because their names match the same pattern. ... why I wouldn't want to execute scripts, ... If the Israelis are to lay down their arms ...
    (rec.motorcycles)