On 3/17/2012 7:06 AM, Charles Williams 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?
drbdlinks will rename /var/spool/cron to /var/spool/cron.drbdlink and create the symlink on "start" and revert it on "stop". /var/spool/cron has to exist (and I think be a directory, not a symlink) and you'll need something else to restart cron. Dima _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
