Subject: | |
From: | |
Reply To: | |
Date: | Thu, 22 Sep 2005 09:08:03 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
You need to look for files that are linked to that file:
ozma(su) /sbin: ls rc*/*cron
rc1.d/K270cron rc2.d/S730cron
This shows that when you transition to run level 1, the
cron job is killed, since the script name in rc1.d starts
with a "K". When you transition to run level 2, it is
started, since that link starts with a "S". Scripts are
run in numeric order in those directories, so it is killed
at "270", but started at "730". Traditionally, these
numbers add up to 1,000, so that things are killed in the
opposite order they are started.
Hope that helps,
Steve
> -----Original Message-----
> From: HP9000 Computer Systems discussion list
> [mailto:[log in to unmask]]On Behalf Of Tracy Pierce
> Sent: Thursday, September 22, 2005 8:58 AM
> To: [log in to unmask]
> Subject: [HP9000-L] cron
>
>
> neophyte sysop wants to know...
>
> What's the proper way to initiate cron in HP-UX 11i?
>
> Of course I found man cron which says
> Since cron never exits, it should be executed only once. This is best
> done by running cron from the initialization process with the startup
> script /sbin/init.d/cron (see init(1M)).
>
> great there's the script, but where should it be invoked? man init(1M)
> suggests /etc/inittab, but I don't see it in there, and cron IS running...
> hpux11i:/ # ps -ef | grep cron
> root 1211 1 0 Jan 17 ? 13:29 /usr/sbin/cron
> root 3183 1535 0 08:55:07 pts/tl 0:00 grep cron
> hpux11i:/ #
>
>
>
> Tracy confused as usual Pierce
>
|
|
|