rc3.d - source: not found


 
Thread Tools Search this Thread
Operating Systems Solaris rc3.d - source: not found
# 15  
Old 03-13-2008
Hi,
I don't understand the *sh case in the case statement:
Code:
*.sh)   .        $f ;;

If the script in /etc/rc3.d/ ends with a .sh .... ?

Tex
# 16  
Old 03-13-2008
Yes, that's what it means but unfortunately, isn't what I was thinking.

Here is something that should work for you that includes the wrapper around your script:

Code:
#!/bin/bash

if ps -p $$ -o comm | tail -1 | grep bash >/dev/null 2>&1
then
  # paste the original content of /etc/init.d/myService.sh here
  ...
else
  /bin/bash /etc/init.d/myService.sh "$@"
fi

# 17  
Old 03-25-2008
Hello,
I forgot a bit this topic as far as the solution abovr works. So the epilogue is that I use a simple script which launches my init script in bash and this seems to work correctly:

Code:
#!/bin/bash
/etc/init.d/myService $1

regards,
Tex
# 18  
Old 03-25-2008
Quote:
Originally Posted by Tex-Twil
I don't understand the *sh case in the case statement:
Code:
*.sh)   .        $f ;;

If the script in /etc/rc3.d/ ends with a .sh .... ?
... then it is sourced, not run in a subprocess. Exactly not what you want.
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. OS X (Apple)

[Solved] links2 --enable-graphics from source, configure error: no graphics driver found.

Howdy I am trying to install links2 with graphics support on snow leopard 10.6.8 (xcode installed). I have had the program running last year, also installed from source - but then I had installed some image libraries with mac ports and fink - cannot reproduce that setup. Plus I would like to not... (6 Replies)
Discussion started by: butterbaerchen
6 Replies

2. HP-UX

bash...Not found through where(compiling source file)

Hi i have compiled and installed bash 3.2 on my hp-ux parisc its in path /usr/local/pkg/bash/bin/bash .....When im search for this bash (through whereis bash) im not findind but other which i hve done in same procedure( gettext,m4) ..Im able to find through whereis search option can any1... (3 Replies)
Discussion started by: vasanthan
3 Replies

3. Debian

Kernel source not found. (can't install network card drivers)

I've had no luck with help on linuxquestions so I figured I'd try here. I'm using debian etch. The problem is that I can not install my network card because it says: Makefile:62: *** Linux kernel source not found. Stop. I have the kernel-headers installed. I've looked all over the... (9 Replies)
Discussion started by: Virtuality
9 Replies

4. Shell Programming and Scripting

how can i check in csh if command found or not found ?

hello all im trying to use in sun Solaris the information received from the top command now i several machines that dont have install the top program so when im running the script im geting error saying after im running this code : set MemoryInfo = `top | grep Memory` if (... (2 Replies)
Discussion started by: umen
2 Replies
Login or Register to Ask a Question