Einstein47
Programmer
Hey all,
I am trying to keep two servers in sync. When the database server (box1) gets rebooted, I need to run a job on the application server (box2). So in the inittab of box1 I added a script to touch a trigger file on box2. Then I have a cron on box2 that looks for the trigger file, and when it finds this trigger, the cron deletes it and runs the specific job. (That is how it is supposed to work).
However, when box1 is rebooted I can see from a log file that the rsh touch was performed, but the trigger file never gets created on box2. Isn't inittab run as root? I have made sure that root has rlogin permissions from box1 to box2. I have even run the script by hand on box1 and have seen the trigger file be created on bix2 (so I know it isn't a permission problem, or a network problem).
The only thing I can think of is that inittab isn't run as root. Can someone point me in the right direction?
Thanks in advance, Einstein47
(The greatest trick the devil ever did was to convice the world he didn't exists.)
I am trying to keep two servers in sync. When the database server (box1) gets rebooted, I need to run a job on the application server (box2). So in the inittab of box1 I added a script to touch a trigger file on box2. Then I have a cron on box2 that looks for the trigger file, and when it finds this trigger, the cron deletes it and runs the specific job. (That is how it is supposed to work).
However, when box1 is rebooted I can see from a log file that the rsh touch was performed, but the trigger file never gets created on box2. Isn't inittab run as root? I have made sure that root has rlogin permissions from box1 to box2. I have even run the script by hand on box1 and have seen the trigger file be created on bix2 (so I know it isn't a permission problem, or a network problem).
The only thing I can think of is that inittab isn't run as root. Can someone point me in the right direction?
Thanks in advance, Einstein47
(The greatest trick the devil ever did was to convice the world he didn't exists.)