to those interested, I finally solved this problem, it turns out that the
path wasnt correctly set for /usr/local/bin, and adding this line fixed it
PATH=/usr/local/bin:$PATH
--
View this message in context:
http://www.nabble.com/startup---shutdown-script-%28rc.d%29-tf3848895.html#a11496394
Se
Jerry McAllister-2 wrote:
>
> Just as a test, I made the following sample script and named it chkrc.sh
> and put it in /usr/local/etc/rc.d with execute permission.
> It works just fine running from command line or as part of boot
> or shutdown.You might try it as proof of concept and go f
as my luck would have it...this didn't work...i used your script...test it by
running ./rtest start & ./rtest stop and everything worked fine (note: i
changed the name from rails to rtest as rails is an actual command)...
but when i rebooted nothing happened. I had the output dump to file and the
t to come out to 2 lines...but it is really 1)
gmoniey wrote:
>
> thanks for the ideas, i tried both of your suggestions...i manually ran
> the rails.sh file, and everything worked as expected...so i dumped the
> output to file...my .sh file looks as such:
>
> #!/bin/sh
>
thanks for the ideas, i tried both of your suggestions...i manually ran the
rails.sh file, and everything worked as expected...so i dumped the output to
file...my .sh file looks as such:
#!/bin/sh
case "$1" in
start)
echo "RAILS found start" >> /tmp/test.file
kldload accf_http >>
S" in the rc.conf file, and that
didn't work (although I didn't expect it to work, as I didn't assign a name
in my script).
any ideas?
Jerry McAllister-2 wrote:
>
> On Thu, May 31, 2007 at 09:05:17PM -0700, gmoniey wrote:
>
>>
>> Hi Noberto,
>&g
thanks to both of youi will give those examples a shot tonight...thanks
again!
gmoniey wrote:
>
> Hi Noberto,
>
> I actually looked at the apache one, and it seemed so complicated, there
> were 2 files for it, one of which was relatively short and the other was
>
m out.
I dont quite see how something as simple as "apachectl start" is expanded
into so many lines.
maybe i will get some time in the near future to understand it...
Norberto Meijome-2 wrote:
>
> On Thu, 31 May 2007 14:06:45 -0700 (PDT)
> gmoniey <[EMAIL PROTECTED]> w
Hi,
I was wondering if there is a simple way to create 1 script that will be
called during startup and shutdown. Basically, I am looking for something
like this:
if startup
run command 1 with params
run command 2 with params
run command 3 with params
if shutdown
run command 4 with p