<?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: Cron started through inittab in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998767#M914178</link>
    <description>To respondents that suggested creating/running a cron monitor script;&lt;BR /&gt;&lt;BR /&gt;   Is there a problem with using the :spawn: option on any stanza in the /etc/inittab file? Shouldn't :spawn: restart that process if it has (been) stopped for any reason? Look at other stanzas in inittab that use :spawn: and see if these processes can be re-spawned(ie restarted by the INIT process). I understand that /sbin/init.d contains system shutdown and startup scripts for most system processes, but has the :spawn: option been functionally supplanted by these scripts? I do not think so.</description>
    <pubDate>Tue, 17 Jun 2003 20:44:57 GMT</pubDate>
    <dc:creator>Jack Werner</dc:creator>
    <dc:date>2003-06-17T20:44:57Z</dc:date>
    <item>
      <title>Cron started through inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998758#M914169</link>
      <description>Hi Guys! Is there any restriction to configure cron to be started through inittab?? I configured a line like that "crn:3:respawn:/usr/sbin/cron". When I run "init q" to reread the inittab file, eight cron processes are been started, and after some time  this number increases. Any idea?"&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jun 2003 17:28:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998758#M914169</guid>
      <dc:creator>LucianoCarvalho</dc:creator>
      <dc:date>2003-06-16T17:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cron started through inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998759#M914170</link>
      <description>Why do you want to start cron using init?  There should already be a cron startup/shutdown.  I have never seen a cron daemon die while a system stays up and running.&lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Mon, 16 Jun 2003 17:33:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998759#M914170</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2003-06-16T17:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cron started through inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998760#M914171</link>
      <description>Your way of setting up cron is not recommended. There is a cron startup script in /sbin/init.d/cron. This will start and stop during system shutdown and start. You don't need to set up through inittab file. Once the system started, the cron daemon will start running and if you want to add some new process in it, use 'crontab' command. Once you add it, it will start running from that moment.&lt;BR /&gt;Read man pages for a better idea:&lt;BR /&gt;&lt;BR /&gt;# man cron&lt;BR /&gt;# man crontab</description>
      <pubDate>Mon, 16 Jun 2003 17:39:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998760#M914171</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-06-16T17:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cron started through inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998761#M914172</link>
      <description>My boss want me to do that just  to make sure  that te daemon will not stop running. &lt;BR /&gt;If there is any restrinctin I can justify that this will not work, but I found nothing saying that I can't use cron in inittab.</description>
      <pubDate>Mon, 16 Jun 2003 17:42:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998761#M914172</guid>
      <dc:creator>LucianoCarvalho</dc:creator>
      <dc:date>2003-06-16T17:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cron started through inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998762#M914173</link>
      <description>To your boss:&lt;BR /&gt;&lt;BR /&gt;1) From man pages of cron (1m) - "Since cron never exits, it should be executed only once.  This is best done by running cron from the initialization process with the startup script /sbin/init.d/cron (see init(1M))."&lt;BR /&gt;&lt;BR /&gt;This answers his concerns about running cron indefenitely.&lt;BR /&gt;&lt;BR /&gt;2) Adding processes/programs in /etc/inittab for startup is an old fashion way. It was used in older days but not now. You can easily manage and administrate rc scripts which is actually started by "rc" command in inittab.</description>
      <pubDate>Mon, 16 Jun 2003 17:53:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998762#M914173</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-06-16T17:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cron started through inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998763#M914174</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;I know this type of bosses so if they would&lt;BR /&gt;understand that cron never exit you can&lt;BR /&gt;change the startup script of cron or made&lt;BR /&gt;new one that will check if cron "exit"&lt;BR /&gt;start it again!&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
      <pubDate>Mon, 16 Jun 2003 18:16:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998763#M914174</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-06-16T18:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cron started through inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998764#M914175</link>
      <description>Write yourself a little cron monitor script and start it at the same time you start cron...&lt;BR /&gt;&lt;BR /&gt;example...&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;while 1&lt;BR /&gt;do&lt;BR /&gt;   ps -ef|grep /usr/sbin/cron|grep -v /usr/sbin/cron&lt;BR /&gt;   if [ $? = 1 ]; then&lt;BR /&gt;      /usr/sbin/cron&lt;BR /&gt;   fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;...of course, you'll need to write a monitor script that monitors that the cron monitor is running, and so on, and so on....</description>
      <pubDate>Mon, 16 Jun 2003 18:24:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998764#M914175</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2003-06-16T18:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cron started through inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998765#M914176</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;If this will make him/her feel better, just write a little monitoring script that will check if the cron daemon is running and have someone get an alert (page,email)if not or simply execute the startup script (/sbin/init.d/cron start)from that same monitoring script.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;DR</description>
      <pubDate>Mon, 16 Jun 2003 18:34:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998765#M914176</guid>
      <dc:creator>Dario_1</dc:creator>
      <dc:date>2003-06-16T18:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cron started through inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998766#M914177</link>
      <description>You seem to be trying to fix the symptoms rather than the problem itself. If the cron daemon is dying (or you are simply concerned that it might die) then:&lt;BR /&gt;&lt;BR /&gt;1) Look for and install the latest cron cumulative patch.&lt;BR /&gt;&lt;BR /&gt;2) Use the standard rc startup script but let it also start a daemon that does a ps -e grep' ing for cron and then sleeps for 600 seconds or so and checks again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jun 2003 18:35:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998766#M914177</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-06-16T18:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cron started through inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998767#M914178</link>
      <description>To respondents that suggested creating/running a cron monitor script;&lt;BR /&gt;&lt;BR /&gt;   Is there a problem with using the :spawn: option on any stanza in the /etc/inittab file? Shouldn't :spawn: restart that process if it has (been) stopped for any reason? Look at other stanzas in inittab that use :spawn: and see if these processes can be re-spawned(ie restarted by the INIT process). I understand that /sbin/init.d contains system shutdown and startup scripts for most system processes, but has the :spawn: option been functionally supplanted by these scripts? I do not think so.</description>
      <pubDate>Tue, 17 Jun 2003 20:44:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998767#M914178</guid>
      <dc:creator>Jack Werner</dc:creator>
      <dc:date>2003-06-17T20:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cron started through inittab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998768#M914179</link>
      <description>Write a script to go in every 5 minutes and check if cron is running.&lt;BR /&gt;If it is, send your boss an email.&lt;BR /&gt;If it isn't, restart it and send yourself a piece of mail.</description>
      <pubDate>Tue, 17 Jun 2003 20:57:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-started-through-inittab/m-p/2998768#M914179</guid>
      <dc:creator>Sorrel G. Jakins</dc:creator>
      <dc:date>2003-06-17T20:57:41Z</dc:date>
    </item>
  </channel>
</rss>

