Web Hosting Talk







View Full Version : funny process?


clocker1996
03-25-2002, 08:35 AM
3 of my users have a cronjob set to run at 5am, all at the same time. Anyway, i just want to know why CROND shows up 3 times. Anyone know?

root 4959 0.0 0.2 1600 636 ? S 05:00 0:00 CROND
root 4960 0.0 0.2 1600 636 ? S 05:00 0:00 CROND
root 4979 0.0 0.2 1596 616 ? S 05:00 0:00 CROND
crazy 4995 0.1 15.3 44740 39004 ? S 05:00 0:13 ./hlds_run -game cstrike +exec server.cfg +ip 216.18.0.178 +port
austin 4996 0.1 15.3 44796 38956 ? S 05:00 0:10 ./hlds_run -game cstrike +exec server.cfg +ip 216.18.0.178 +port
phoenix 4997 0.0 15.1 44544 38692 ? S 05:00 0:06 ./hlds_run -game cstrike +exec server.cfg +ip 216.18.0.178 +port
root 5394 0.5 0.2 1588 664 ? S 07:23 0:00 crond


at this point it was 7am

jks
03-25-2002, 08:46 AM
Originally posted by clocker1996
3 of my users have a cronjob set to run at 5am, all at the same time. Anyway, i just want to know why CROND shows up 3 times. Anyone know?

root 4959 0.0 0.2 1600 636 ? S 05:00 0:00 CROND
root 4960 0.0 0.2 1600 636 ? S 05:00 0:00 CROND
root 4979 0.0 0.2 1596 616 ? S 05:00 0:00 CROND
crazy 4995 0.1 15.3 44740 39004 ? S 05:00 0:13 ./hlds_run -game cstrike +exec server.cfg +ip 216.18.0.178 +port
austin 4996 0.1 15.3 44796 38956 ? S 05:00 0:10 ./hlds_run -game cstrike +exec server.cfg +ip 216.18.0.178 +port
phoenix 4997 0.0 15.1 44544 38692 ? S 05:00 0:06 ./hlds_run -game cstrike +exec server.cfg +ip 216.18.0.178 +port
root 5394 0.5 0.2 1588 664 ? S 07:23 0:00 crond


at this point it was 7am

Because cron forks 3 processes to run those 3 commands (counterstrike servers)? :-)

clocker1996
03-25-2002, 04:42 PM
the crontab line is this:

00 05 * * * cd $HOME;./kill;./start

simple.

the proces was already running.

at 5am, cd $HOME;./kill;./start ran.

cd $HOME;./kill;./start means that it'll just re-start the server.

the job was done, but why are there 3 CROND processes laying around, THAT is my question.

priyadi
03-26-2002, 09:30 AM
pstree (instead of ps) might give you more idea what's going on.