On Tue, 2004-04-06 at 08:38, Fred New wrote:
6. aprill 2004. a. 16:14, Brian Millett wrote:
>
> Hi, I have the latest rawhide updates (except for --exclude=Canna*
> --exclude=kinput2-canna-wnn6 --exclude=nvi-m17n-canna). I
> have a script to start Jetty.
>
> chkconfig jettyctl --list
> jettyctl 0:off 1:off 2:on 3:on 4:on 5:on 6:off
>
> The problem is that when I start up, the script runs just fine for
> runlevel 5. When I shutdown, or reboot, then the script does not run
> for the 0, or 6 runlevel.
>
> So, what causes a script to run for level 0 or 6? Just having a
> K20jettyctl does not seem to do the trick. I noticed that I have many
> scripts in rc0.d that do not run, or at least i can not get
> them to run at shutdown. Can someone enlighten me as to what
> causes a stop to run on shutdown?
>
I didn't check out your script, but what happens when you
/etc/rc.d/init.d/jettyctl stop
and
service jettyctl stop
?
Other clues might be found in /etc/inittab. In FC1, I see the following
lines concerning this:
l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6
So then maybe you should check out the script /etc/rc.d/rc.
Thanks Fred.
If I run by hand, it works like advertised.
I also have checked the inittab file, and it is the same for FC2t2. The
script in init.d is linked correctly to the rc.d/rc?.d directories:
shaka: find /etc/rc.d -name \*jettyctl -exec ls -l {} \;
-rwxr-xr-x 1 bpm develop 2027 Apr 5 21:59 /etc/rc.d/init.d/jettyctl
lrwxrwxrwx 1 root root 18 Apr 5 22:00 /etc/rc.d/rc0.d/K20jettyctl ->
../init.d/jettyctl
lrwxrwxrwx 1 root root 18 Apr 5 22:00 /etc/rc.d/rc1.d/K20jettyctl ->
../init.d/jettyctl
lrwxrwxrwx 1 root root 18 Apr 5 22:00 /etc/rc.d/rc2.d/S80jettyctl ->
../init.d/jettyctl
lrwxrwxrwx 1 root root 18 Apr 5 22:00 /etc/rc.d/rc3.d/S80jettyctl ->
../init.d/jettyctl
lrwxrwxrwx 1 root root 18 Apr 5 22:00 /etc/rc.d/rc4.d/S80jettyctl ->
../init.d/jettyctl
lrwxrwxrwx 1 root root 18 Apr 5 22:00 /etc/rc.d/rc5.d/S80jettyctl ->
../init.d/jettyctl
lrwxrwxrwx 1 root root 18 Apr 5 22:00 /etc/rc.d/rc6.d/K20jettyctl ->
../init.d/jettyctl
--
Brian Millett - Technologist Rex
"Something's going on, Commander."
'I know. And between you and me. It's scaring the hell out of me.'
-- Sheridan and Ivanova, "The Long Dark"