Bug #4728
closed
check-rudder-agent is not added to the crontab on AIX systems
Added by Vincent MEMBRÉ over 10 years ago.
Updated over 10 years ago.
Category:
System integration
Description
check-rudder-agent script is not run using a cronjob on AIX.
We should add a cronjob to use in AIX.
- Status changed from New to 8
- Assignee set to Matthieu CERDA
This bug is blocking for 2.10.2.
- Subject changed from check-rudder-agent is missing on AIX agent to check-rudder-agent is not added to the crontab on AIX systems
- Status changed from 8 to Discussion
- Assignee changed from Matthieu CERDA to Jonathan CLARKE
AIX does not provide a /etc/cron.d mechanism, and no /etc/crontab too actually. The only thing usable is the /var/spool/cron/crontabs directory, containing the user crontabs. Problem is, we have no exclusivity here, the root crontab can contain something already and we can only use root.
We haven't a lot of possibilities here:
- Do not use cron on AIX and trust startsvc / inittab (the "AIX" way)
- Hack into /var/spool/cron/crontabs/root to add our check-rudder-agent script, with a lot of care
What should we do ?
- Assignee changed from Jonathan CLARKE to Matthieu CERDA
We don't really have a choice: let's add a line to the crintab.
But since we don't have historical upgrades to manage on AIX, just make it the simplest possible : if [ - X check Rudder agent then run check Rudder agent. Simple one liner.
- Status changed from Discussion to Rejected
Also available in: Atom
PDF