<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Syncing Crontab in a Service Guard Environment in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227552#M706002</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What about the following ?&lt;BR /&gt;To set node1 as a master and to run&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;LIST_USERS="root admin whatever"&lt;BR /&gt;for USER in $LIST_USERS ; do&lt;BR /&gt;rcp /var/spool/cron/crontabs/$USER node2:/var/spool/cron/crontabs/.&lt;BR /&gt;done&lt;BR /&gt;remsh node2 "/sbin/init.d/cron stop"&lt;BR /&gt;remsh node2 "/sbin/init.d/cron start"&lt;BR /&gt;&lt;BR /&gt;Regards</description>
    <pubDate>Tue, 23 Mar 2004 16:56:55 GMT</pubDate>
    <dc:creator>Victor Fridyev</dc:creator>
    <dc:date>2004-03-23T16:56:55Z</dc:date>
    <item>
      <title>Syncing Crontab in a Service Guard Environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227547#M705997</link>
      <description>I have a two node Service Guard environment.  I would like to keep the crontab between both systems in sync.&lt;BR /&gt;&lt;BR /&gt;How do you go about keeping crontab between both systems in sync?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Mar 2004 16:35:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227547#M705997</guid>
      <dc:creator>David Land</dc:creator>
      <dc:date>2004-03-23T16:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing Crontab in a Service Guard Environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227548#M705998</link>
      <description>As root (or su-ed to the other cron users):&lt;BR /&gt;TDIR=${TMPDIR:-/var/tmp}&lt;BR /&gt;TFILE=${TDIR}/X${$}.cron&lt;BR /&gt;&lt;BR /&gt;remsh hostB crontab -l &amp;gt; ${TFILE}&lt;BR /&gt;crontab &amp;lt; ${TFILE}&lt;BR /&gt;rm -f ${TFILE}&lt;BR /&gt; &lt;BR /&gt;Add a bit of error checking and that's it.</description>
      <pubDate>Tue, 23 Mar 2004 16:40:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227548#M705998</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-03-23T16:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing Crontab in a Service Guard Environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227549#M705999</link>
      <description>How about rdist or a seperate cron job for syncing Crontabs.&lt;BR /&gt;&lt;BR /&gt; if [ $(hostname) != "server2" ]&lt;BR /&gt; then&lt;BR /&gt;  for USER in $(cat /tmp/crontablist)&lt;BR /&gt;  do&lt;BR /&gt;    rcp /var/spool/cron/crontabs/$USER server2:/tmp/${USER}_cron&lt;BR /&gt;  remsh server2 "su ${USER} -c "/usr/bin/crontab /tmp/${USER}_cron"&lt;BR /&gt;  remsh server2 rm /tmp/${USER}_cron&lt;BR /&gt;  done&lt;BR /&gt; fi</description>
      <pubDate>Tue, 23 Mar 2004 16:45:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227549#M705999</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-03-23T16:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing Crontab in a Service Guard Environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227550#M706000</link>
      <description>Rcp/rdist will bring the files over but it will not refresh the cron daemon's current internal data structures. For that you need the crontab command which copies in the new file AND sends a SIGHUP to the cron daemon.&lt;BR /&gt;&lt;BR /&gt;You could rcp the files over and then send a kill -1 to cron.</description>
      <pubDate>Tue, 23 Mar 2004 16:49:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227550#M706000</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-03-23T16:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing Crontab in a Service Guard Environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227551#M706001</link>
      <description>David,&lt;BR /&gt;&lt;BR /&gt;In our environment, instead of sync'ing crontabs, we made separate crontabs for different users. So, as the package goes up, the correspondent crontab is putting to work.&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Mar 2004 16:55:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227551#M706001</guid>
      <dc:creator>Julio Yamawaki</dc:creator>
      <dc:date>2004-03-23T16:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing Crontab in a Service Guard Environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227552#M706002</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What about the following ?&lt;BR /&gt;To set node1 as a master and to run&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;LIST_USERS="root admin whatever"&lt;BR /&gt;for USER in $LIST_USERS ; do&lt;BR /&gt;rcp /var/spool/cron/crontabs/$USER node2:/var/spool/cron/crontabs/.&lt;BR /&gt;done&lt;BR /&gt;remsh node2 "/sbin/init.d/cron stop"&lt;BR /&gt;remsh node2 "/sbin/init.d/cron start"&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 23 Mar 2004 16:56:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227552#M706002</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2004-03-23T16:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing Crontab in a Service Guard Environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227553#M706003</link>
      <description>Doing the RCP will probably work, but how do you send a kill -1 signal to Cron?</description>
      <pubDate>Tue, 23 Mar 2004 17:04:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227553#M706003</guid>
      <dc:creator>David Land</dc:creator>
      <dc:date>2004-03-23T17:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing Crontab in a Service Guard Environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227554#M706004</link>
      <description>ps -ef | grep -v grep | grep cron | awk '{print $2}' | xargs kill -1&lt;BR /&gt;&lt;BR /&gt;thats one way to HUP cron. assuming you don't have any other process that match cron as the grep pattern.</description>
      <pubDate>Tue, 23 Mar 2004 17:11:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227554#M706004</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2004-03-23T17:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing Crontab in a Service Guard Environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227555#M706005</link>
      <description>I take a slightly different approach to this, so I can associate a crontab with a package:&lt;BR /&gt;&lt;BR /&gt;1. Create a crontab file on shared storage associated with the package.&lt;BR /&gt;&lt;BR /&gt;2. in the package start scripts update the crontab with this file&lt;BR /&gt;&lt;BR /&gt;3. in the package stop scripts remove the crontab&lt;BR /&gt;&lt;BR /&gt;4. As sometimes the node will fail while the package is running, we also need a startup script in /sbin/init.d linked to /sbin/rc2.d that runs before the cluster starts and removes all crontabs associated with packages (when the package starts, they will get added back)&lt;BR /&gt;&lt;BR /&gt;5. Make sure that there is a comment at the start of the crontab that reads something like:&lt;BR /&gt;&lt;BR /&gt;# WARNING: Do not update using crontab -e&lt;BR /&gt;# Instead, update file /shareddisk/myuser/crontab and run&lt;BR /&gt;# crontab /shareddisk/myuser/crontab&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Wed, 24 Mar 2004 04:47:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227555#M706005</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2004-03-24T04:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing Crontab in a Service Guard Environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227556#M706006</link>
      <description>If the purpose of syncronizing them is linked to the packages I would suggest having the package scripts putting in the crontab entry when started and removing it when stopped.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Trond</description>
      <pubDate>Wed, 24 Mar 2004 06:20:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncing-crontab-in-a-service-guard-environment/m-p/3227556#M706006</guid>
      <dc:creator>Trond Haugen</dc:creator>
      <dc:date>2004-03-24T06:20:22Z</dc:date>
    </item>
  </channel>
</rss>

