<?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: RC Scripts not starting in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887247#M401665</link>
    <description>Aslam,&lt;BR /&gt;Reading the man pages, just noticed:&lt;BR /&gt;"It is recommended that the pfs_mountd daemon be invoked by rc(1M).It must be invoked in the background."&lt;BR /&gt;Are running it in the background?&lt;BR /&gt;Regards</description>
    <pubDate>Tue, 22 Feb 2005 12:07:10 GMT</pubDate>
    <dc:creator>Peter Godron</dc:creator>
    <dc:date>2005-02-22T12:07:10Z</dc:date>
    <item>
      <title>RC Scripts not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887237#M401655</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;I have some scripts which I have created to start pfs_demon and pfsd, but they dont seem to work.&lt;BR /&gt;&lt;BR /&gt;I have a similar script to start up other things and it seems fine at startup.&lt;BR /&gt;&lt;BR /&gt;within the script,under start, I have the following : &lt;BR /&gt;/usr/sbin/pfs_mountd &amp;amp;&lt;BR /&gt; /usr/sbin/pfsd 4 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;I have also tried using nohup in fornt of it and also without the '&amp;amp;' at the end but to no avail.&lt;BR /&gt;&lt;BR /&gt;Running it manually using S991pfs_mount start seems to work fine but not under the rc3.d scripts .&lt;BR /&gt;&lt;BR /&gt;Any clues as to what I could be missing&lt;BR /&gt;&lt;BR /&gt;Cheers, Aslam&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Feb 2005 08:42:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887237#M401655</guid>
      <dc:creator>Aslam Ghumra_2</dc:creator>
      <dc:date>2005-02-22T08:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: RC Scripts not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887238#M401656</link>
      <description>Did you do the links from S991pfs_mount to your /sbin/init.d/pfs_mount script?  Does your script ensure that all environment variables are set and full path names are used for all commands?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 22 Feb 2005 08:45:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887238#M401656</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-02-22T08:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: RC Scripts not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887239#M401657</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have not linked it I have just put it into the script within /sbin/rc3.d/S991pfs_mount&lt;BR /&gt;&lt;BR /&gt;All executables have full paths, but I dont have any environment variables to be set :&lt;BR /&gt;&lt;BR /&gt;I have copied the script below&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;#&lt;BR /&gt;PATH=$PATH:/usr/sbin:/usr/bin:/sbin&lt;BR /&gt;&lt;BR /&gt;# Daemons:      psf_daemon&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;killproc() {            # kill the named process(es)&lt;BR /&gt;  for x in "$@";do&lt;BR /&gt;    pid=`ps -e |grep "$x" |sed -e 's/^  *//' -e 's/ .*//'`&lt;BR /&gt;    [ ! -z "$pid" ] &amp;amp;&amp;amp; echo killing $x &amp;amp;&amp;amp; kill $pid &amp;amp;&lt;BR /&gt;  done&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# return pid of the named process(es)&lt;BR /&gt;findproc() {&lt;BR /&gt;  pid=`ps -e |grep "$1" |sed -e 's/^  *//' -e 's/ .*//'`&lt;BR /&gt;  echo $pid&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;EXIT_OK=0&lt;BR /&gt;EXIT_ERR=1&lt;BR /&gt;EXIT_NA=2&lt;BR /&gt;&lt;BR /&gt;case "$1" in&lt;BR /&gt;   'start_msg')&lt;BR /&gt;        echo "Starting pfs_mountd"&lt;BR /&gt;        exit $EXIT_OK&lt;BR /&gt;        ;;&lt;BR /&gt;   'stop_msg')&lt;BR /&gt;        echo "Stopping pfs_mountd"&lt;BR /&gt;        exit $EXIT_OK&lt;BR /&gt;        ;;&lt;BR /&gt;   'start')&lt;BR /&gt;        /usr/sbin/pfsd &amp;amp;&lt;BR /&gt;        /usr/sbin/pfs_mountd &amp;amp;&lt;BR /&gt;        exit $EXIT_OK&lt;BR /&gt;                ;;&lt;BR /&gt;   'stop')&lt;BR /&gt;        killproc pfs_mountd&lt;BR /&gt;        exit $EXIT_OK&lt;BR /&gt;        ;;&lt;BR /&gt;   *)&lt;BR /&gt;        echo "Usage: /sbin/rc3.d/S991pfs_mountd { start | stop }"&lt;BR /&gt;        exit $EXIT_ERR&lt;BR /&gt;        ;;&lt;BR /&gt;esac</description>
      <pubDate>Tue, 22 Feb 2005 08:52:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887239#M401657</guid>
      <dc:creator>Aslam Ghumra_2</dc:creator>
      <dc:date>2005-02-22T08:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: RC Scripts not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887240#M401658</link>
      <description>/sbin/rc3.d/S991pfs_mount should be a link to /sbin/init.d/pfs_mount.  The way startup works is that the entries in each of the rc?.d directories are parsed and the corresponding script in /sbin/init.d ends up being invoked with either the start paramater or the stop parameter.  Placing the full script in /sbin/rc3.d is not going to work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 22 Feb 2005 09:07:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887240#M401658</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-02-22T09:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: RC Scripts not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887241#M401659</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;So I should copy this script to /sbin/init.d directpory and link to it.&lt;BR /&gt;&lt;BR /&gt;I'll try and see.&lt;BR /&gt;&lt;BR /&gt;Thanks again, Aslam</description>
      <pubDate>Tue, 22 Feb 2005 09:10:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887241#M401659</guid>
      <dc:creator>Aslam Ghumra_2</dc:creator>
      <dc:date>2005-02-22T09:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: RC Scripts not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887242#M401660</link>
      <description>Hi again&lt;BR /&gt;&lt;BR /&gt;copied the file to /sbin/init.d directory, and linked it.&lt;BR /&gt;&lt;BR /&gt;Changing runlevel from 3 to 2 and back again to 3 seems to make it work.&lt;BR /&gt;&lt;BR /&gt;However when rebooting this machine, the script still fails.  I cannot seem to find the cause.&lt;BR /&gt;&lt;BR /&gt;Aslam</description>
      <pubDate>Tue, 22 Feb 2005 09:30:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887242#M401660</guid>
      <dc:creator>Aslam Ghumra_2</dc:creator>
      <dc:date>2005-02-22T09:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: RC Scripts not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887243#M401661</link>
      <description>Aslam,&lt;BR /&gt;add some debug steps into your code and then check the rc.log file after reboot.&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 22 Feb 2005 09:36:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887243#M401661</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-02-22T09:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: RC Scripts not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887244#M401662</link>
      <description>In the script listed above, I have just added 'I am here' to try and see which part of the script it runs, and it actually goes to the correct case statements and runs the pfs_mountd command.  But I have no idea why then the pfs_mountd fails, Does any one know how to debug this ?</description>
      <pubDate>Tue, 22 Feb 2005 10:18:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887244#M401662</guid>
      <dc:creator>Aslam Ghumra_2</dc:creator>
      <dc:date>2005-02-22T10:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: RC Scripts not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887245#M401663</link>
      <description>Why shutdown but not reboot.&lt;BR /&gt;----------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;This document from HP explains more about shutdown vs reboot:&lt;BR /&gt;When bringing an HP-UX system down, Hewlett Packard recommends using&lt;BR /&gt;the shutdown(1M) command instead of the reboot command.&lt;BR /&gt;&lt;BR /&gt;The shutdown(1M) command does additional preprocessing to prepare&lt;BR /&gt;the system for the reboot(1M) command.  Primarily, shutdown(1M)&lt;BR /&gt;executes /sbin/rc to shutdown subsystems, unmount filesystems, and&lt;BR /&gt;other tasks to bring the system to run level 0.  This process&lt;BR /&gt;ensures that the system is as quiet as possible before running the&lt;BR /&gt;reboot(1M) command.&lt;BR /&gt;&lt;BR /&gt;The reboot(1M) command will then kill all remaining non-system&lt;BR /&gt;processes, sync the buffer cache, and then calls the reboot(2)&lt;BR /&gt;system call.&lt;BR /&gt;&lt;BR /&gt;Note that issuing a reboot instead of a shutdown does not attempt&lt;BR /&gt;to stop any of the subsystems or unmount the file systems.  While&lt;BR /&gt;reboot does attempt to kill non-system processes, other system&lt;BR /&gt;deamons may be active on the system.  For example, the vxfsd&lt;BR /&gt;daemon may be attempting to flush the inode cache.&lt;BR /&gt;&lt;BR /&gt;Any remaining activity on the system - when the reboot(2) system&lt;BR /&gt;call is made - can cause the system to hang during the reboot if&lt;BR /&gt;the activity locks any resource that the reboot(2) system call&lt;BR /&gt;needs to complete its processing, especially when reboot is trying&lt;BR /&gt;to flush the buffer cache.&lt;BR /&gt;&lt;BR /&gt;Therefore, shutdown(1M) should be used instead of reboot(1M) to&lt;BR /&gt;provide a more comprehensive shutdown and limit the possibility of&lt;BR /&gt;system hangs during a reboot.&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Feb 2005 10:29:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887245#M401663</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-02-22T10:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: RC Scripts not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887246#M401664</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Sorry I ment I use "shutdown -r -y -o now"  to reboot the server.&lt;BR /&gt;&lt;BR /&gt;I think persnally its now the pfs_mountd and the pfsd commands, they have to be started up manually.&lt;BR /&gt;&lt;BR /&gt;I've on a few systems here but none are running this automatically.&lt;BR /&gt;&lt;BR /&gt;Cheers.&lt;BR /&gt;Aslam</description>
      <pubDate>Tue, 22 Feb 2005 12:00:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887246#M401664</guid>
      <dc:creator>Aslam Ghumra_2</dc:creator>
      <dc:date>2005-02-22T12:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: RC Scripts not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887247#M401665</link>
      <description>Aslam,&lt;BR /&gt;Reading the man pages, just noticed:&lt;BR /&gt;"It is recommended that the pfs_mountd daemon be invoked by rc(1M).It must be invoked in the background."&lt;BR /&gt;Are running it in the background?&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 22 Feb 2005 12:07:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887247#M401665</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-02-22T12:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: RC Scripts not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887248#M401666</link>
      <description>Hi, Yes I am trying to run pfs in the background.</description>
      <pubDate>Wed, 23 Feb 2005 03:34:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887248#M401666</guid>
      <dc:creator>Aslam Ghumra_2</dc:creator>
      <dc:date>2005-02-23T03:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: RC Scripts not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887249#M401667</link>
      <description>I have now changed the script to &lt;BR /&gt;&lt;BR /&gt;a) export PATH&lt;BR /&gt;b) add nohup before the script.&lt;BR /&gt;&lt;BR /&gt;It now works, thanks to all.&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Wed, 23 Feb 2005 05:43:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887249#M401667</guid>
      <dc:creator>Aslam Ghumra_2</dc:creator>
      <dc:date>2005-02-23T05:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: RC Scripts not starting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887250#M401668</link>
      <description>see posting above.</description>
      <pubDate>Wed, 23 Feb 2005 05:45:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rc-scripts-not-starting/m-p/4887250#M401668</guid>
      <dc:creator>Aslam Ghumra_2</dc:creator>
      <dc:date>2005-02-23T05:45:08Z</dc:date>
    </item>
  </channel>
</rss>

