On Sat, Mar 17, 2012 at 1:06 PM, Charles Williams <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hey all, > > I have been looking all over for a way to do this and have yet to find > anything. > > I have a symlink resource that links an nfs share to /var/spool/cron > (/var/spool/cron -> /mnt/imports/nvwh2.bluedotmedia.de/var/spool/cron) > and I need to be able to check if /var/spool/cron exists and if so if > it's a symlink prior to starting the resource. If it's an actual > directory I will need to delete it, start the resource and restart cron. > If not then cron will not be able to access the spool directory because > the inode has changed. > > I have been looking at the dummy resource to maybe be able to do this > but am not sure if it will work. > > Does anyone have an idea how this could be accomplished?
Should be doable with some clever use of constraints. Have a look at this: http://www.hastexo.com/resources/hints-and-kinks/managing-cron-jobs-pacemaker That post explains managing cron job _definitions_ rather than the spool directory, but you should be able to apply the concept to your issue anyhow. Hope this helps. Cheers, Florian -- hastexo High Availability Expert Training http://www.hastexo.com/hhax _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
