Re: Chkconfig priority levels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The first couple of lines of /etc/rc*.d/S99local say it all:

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local



Thus, my /etc/rc3.d/S99local (since my machine runs at runlevel 3) contains the above as well as:

echo "Mounting NFS filesystems:"
/usr/local/sys/mntboot m

echo "Synching date and time:"
rdate -s time.nist.gov

echo "Scheduling start of Folding@Home client:"
su cph -c "/usr/bin/at -f /home/cph/bin/fah/cph.start now + 1 minute"


Note how my folding at home entry is the last thing that gets started, and the actual folding at home file is just another wrapper:

[cph@tango]$ cat /home/cph/bin/fah/cph.start
cd /home/cph/bin/fah
/home/cph/bin/fah/fah_client -verbosity 9



I made this argument on an earlier posting about how some of the tools (IE: chkconfig and redhat-config-services) are nice for modifying runlevels, but sometimes you can't beat the simplicity of just editing the file(s) with the editor of your choice.

-Pete

At 07:28 AM 12/20/2002, you wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 20 Dec 2002, Ryan McDougall wrote:

> So do you think that 99 would be a good start and stop number? I think a
> lot of people from a forum I go to use those start and stop numbers for
> anything that they the user make up. Are there any general rules of
> thumb that people "follow", seeing as how they are arbitrary?

        Probably good to start it before rc.local and end it... Well...
Damn!  I can't remember the shutdown order.  I have been leaning towards
stopping in reverse order of starting.

- --
"Khaaaaamaaayyyy, Haaaaamaaaayyyy, HAAAAAAAAA!!!!!"
                -- Goku, Dragon Ball
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+AxsGHeWRPx8OIHARAtauAJwMJL/RSD8yDwYLVe1LUWKTSEmVuACgh2qD
13PP91bgdS8KN5UiB/egqnk=
=AvLj
-----END PGP SIGNATURE-----



--
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

--------------------------
Pete Huckelba

Stata Corporation
4905 Lakeway Drive
College Station, TX  77845
(979)696-4600



--
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux