[rhn-users] adding a task for shutdown

spiv007 spiv007 at gmail.com
Thu Apr 7 18:31:15 UTC 2005


> > /etc/init.d/foo -> /etc/rc.d/rc0.d/K01foo
> > /etc/init.d/foo -> /etc/rc.d/rc6.d/K01foo
> 
> Shouldn't those point the other way?  You want K01foo to be a symlink to
> ../init.d/foo.
its right ln -s /etc/init.d/foo /etc/rc.d/rc0.d/K01foo and ln -s
/etc/init.d/foo /etc/rc.d/rc6.d/K01foo

its +rx and tmp not being cleaned... this is werid, not sure what im
missing here.


On Apr 7, 2005 12:49 PM, Jesse Becker <jbecker at northwestern.edu> wrote:
> On Thu, Apr 07, 2005 at 12:42:29PM -0400, spiv007 wrote:
> > I create the script and put it in /etc/init.d/foo
> > for there i link the following
> >
> > /etc/init.d/foo -> /etc/rc.d/rc0.d/K01foo
> > /etc/init.d/foo -> /etc/rc.d/rc6.d/K01foo
> 
> Shouldn't those point the other way?  You want K01foo to be a symlink to
> ../init.d/foo.
> 
> > So after that if i do a shutdown -r or shutdown -h the script does not
> > run on those runlevel.
> 
> Make sure that /etc/init.d/foo is executable.
> 
> > The way im testing this is by making a log file to echo to /tmp/foo.log
> 
> Make sure you aren't cleaning /tmp on each system boot.  Probably the easiest
> thing to do it write the log somehwere else (perhaps /var/log/shutdown.log) as a test.
> 
> --
> Jesse Becker
> GPG-fingerprint: BD00 7AA4 4483 AFCC 82D0  2720 0083 0931 9A2B 06A2
> 
> 
>




More information about the rhn-users mailing list