<?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: usage errors on startup scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885221#M280586</link>
    <description>Try removing the double quotes from around your "$1" so it is just $1 in the scripts and try again.</description>
    <pubDate>Mon, 23 Oct 2006 16:17:43 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2006-10-23T16:17:43Z</dc:date>
    <item>
      <title>usage errors on startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885211#M280576</link>
      <description>all: &lt;BR /&gt;&lt;BR /&gt;I have a situation that i hope you can help with.&lt;BR /&gt;&lt;BR /&gt;I have several boxes all having issues with the same startup scripts not running at boot time. The permissions and ownership look fine to me, but i have a few questions.&lt;BR /&gt;&lt;BR /&gt;In my /etc/rc.log i get usage errors for these scripts.&lt;BR /&gt;&lt;BR /&gt;===========================================&lt;BR /&gt;# grep Usage /etc/rc.log                              &lt;BR /&gt;Usage: /sbin/rc3.d/S95xvfb { start | stop }           &lt;BR /&gt;Usage: /sbin/rc3.d/S97ofx { start | stop }            &lt;BR /&gt;===========================================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1) does the naming convention matter? the links in /sbin/rc3.d dont match the original file name. &lt;BR /&gt;&lt;BR /&gt;2) does the SXXX part matter if it is only 2 digits? as in my examples below.&lt;BR /&gt;&lt;BR /&gt;3) I was told the linked file permissions dont matter only the orignial file permissions so far as being executable, which they are, but read access isnt there.&lt;BR /&gt;&lt;BR /&gt;=============================================&lt;BR /&gt;root:/sbin/rc3.d&lt;BR /&gt;lrwxr-xr-x   1 root       sys             21 Oct 23 12:51 S95xvfb -&amp;gt; /sbin/init.&lt;BR /&gt;d/xvfbinit                                                                      &lt;BR /&gt;lrwxr-xr-x   1 root       sys             20 Oct 23 12:51 S97ofx -&amp;gt; /sbin/init.d&lt;BR /&gt;/ofxinit     &lt;BR /&gt;=============================================&lt;BR /&gt;&lt;BR /&gt;-rwxr-xr-x   1 root       sys            828 Dec 22  2005 ofxinit  &lt;BR /&gt;-rwxr-xr-x   1 root       sys            507 Dec 22  2005 xvfbinit</description>
      <pubDate>Mon, 23 Oct 2006 15:20:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885211#M280576</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2006-10-23T15:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: usage errors on startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885212#M280577</link>
      <description>Looks to me like the logic of the init scripts themselves. Perhaps no "start" and "stop" matches in the case statement so it's returning the usage message as the default action.</description>
      <pubDate>Mon, 23 Oct 2006 15:28:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885212#M280577</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-10-23T15:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: usage errors on startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885213#M280578</link>
      <description>As to the specific questions posed:&lt;BR /&gt;&lt;BR /&gt;1. Makes no difference.&lt;BR /&gt;&lt;BR /&gt;2. Makes no difference. The numbers are just a mechanism to order the execution of the scripts. As long as they start with S, they will be executed at the start of that init state. The link could have no number... it would just be executed in ASCII order along with the ones that contain numbers.&lt;BR /&gt;&lt;BR /&gt;3. Symlink permissions are irrelevant (although it appears all permissions in fact match in your case). Permissions don't appear to be your problem though since you're getting the usage message instead of some kind of permission denied error.</description>
      <pubDate>Mon, 23 Oct 2006 15:41:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885213#M280578</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-10-23T15:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: usage errors on startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885214#M280579</link>
      <description>okay thanks, thats what i have been saying all along. That it is the scripts themselves not the startup routine.</description>
      <pubDate>Mon, 23 Oct 2006 15:49:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885214#M280579</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2006-10-23T15:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: usage errors on startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885215#M280580</link>
      <description>Based on the fact that it falls thru the case statement to the exit and consequentn usage message, tells me the input for the script is invalid in someway...</description>
      <pubDate>Mon, 23 Oct 2006 15:52:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885215#M280580</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2006-10-23T15:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: usage errors on startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885216#M280581</link>
      <description>&lt;BR /&gt;It does "echo: the startup statement in the first case argument, so it appears to try and start the scripts, but then It falls thru the case statement to the final exit case argument at the bottom. &lt;BR /&gt;&lt;BR /&gt;Almost as if it runs 2 parts of the case and not only 1 part.&lt;BR /&gt;&lt;BR /&gt;# vi /etc/rc.log                  &lt;BR /&gt;Usage: /sbin/rc3.d/S95xvfb { start | stop }                                     &lt;BR /&gt;Output from "/sbin/rc3.d/S95xvfb start":                                        &lt;BR /&gt;----------------------------                                                    &lt;BR /&gt;***Starting up the Virtual Frame Buffer on Screen 1***                          &lt;BR /&gt;&lt;BR /&gt;Usage: /sbin/rc3.d/S97ofx { start | stop }                                      &lt;BR /&gt;Output from "/sbin/rc3.d/S97ofx start":                                         &lt;BR /&gt;----------------------------                                                    &lt;BR /&gt;***Starting up the Spatial FX Server 3.3 using Virtual Framebuffer (xvfb)***</description>
      <pubDate>Mon, 23 Oct 2006 16:01:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885216#M280581</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2006-10-23T16:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: usage errors on startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885217#M280582</link>
      <description>Can you possibly post the scripts so we can see them?&lt;BR /&gt;&lt;BR /&gt;When the system starts, it takes the /sbin/rc?.d/S* scripts and does, for example,:&lt;BR /&gt;&lt;BR /&gt;S97ofx start&lt;BR /&gt;&lt;BR /&gt;Now, if the case statement is not recognizing 'start' then it will fail.  Perhaps start is spelled Start, or START or something.  It must be an all lower case 'start' for the script to function correctly.&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Oct 2006 16:03:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885217#M280582</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-10-23T16:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: usage errors on startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885218#M280583</link>
      <description>here you go.&lt;BR /&gt;&lt;BR /&gt;============================================# cat ofxinit                                                                   &lt;BR /&gt;#!/usr/bin/ksh                                                                  &lt;BR /&gt;#                                                                               &lt;BR /&gt;&lt;BR /&gt;case "$1" in                                                                    &lt;BR /&gt;'start')                                                                        &lt;BR /&gt;        if [ -x /app1/ofx/SpatialFX33Server/server/startServer.sh ] ; then      &lt;BR /&gt;                echo "***Starting up the Spatial FX Server 3.3 using Virtual Fra&lt;BR /&gt;mebuffer (xvfb)***"                                                             &lt;BR /&gt;                DISPLAY=:1.0                                                    &lt;BR /&gt;                export DISPLAY                                                  &lt;BR /&gt;                #sleep 15                                                       &lt;BR /&gt;                cd /app1/ofx/SpatialFX33Server/server                           &lt;BR /&gt;                /app1/ofx/SpatialFX33Server/server/startServer.sh &amp;gt; /app1/ofx/lo&lt;BR /&gt;gs/ofx.log 2&amp;gt;&amp;amp;1 &amp;amp;                                                               &lt;BR /&gt;        fi                                                                      &lt;BR /&gt;        ;;                                                                      &lt;BR /&gt;&lt;BR /&gt;'stop')                                                                         &lt;BR /&gt;#        /usr/bin/pkill -9 -x -u 0 '(startServer)'                              &lt;BR /&gt;        for I in `ps -ef | grep [S]erver/j2 | awk '{print $2}'`                 &lt;BR /&gt;        do                                                                      &lt;BR /&gt;                ps -ef | grep [S]erver/j2                                       &lt;BR /&gt;                echo $I                                                         &lt;BR /&gt;                /usr/bin/kill -9 $I &amp;gt;&amp;gt; /app1/ofx/logs/ofx.out                   &lt;BR /&gt;        done                                                                    &lt;BR /&gt;        for I in `ps -ef | grep [o]fx | awk '{print $2}'`                       &lt;BR /&gt;        do                                                                      &lt;BR /&gt;                ps -ef | grep [o]fx                                             &lt;BR /&gt;                echo $I                                                         &lt;BR /&gt;                /usr/bin/kill -9 $I &amp;gt;&amp;gt; /app1/ofx/logs/ofx.out                   &lt;BR /&gt;        done                                                                    &lt;BR /&gt;        ;;                                                                      &lt;BR /&gt;*)                                                                              &lt;BR /&gt;        echo "Usage: $0 { start | stop }"                                       &lt;BR /&gt;        exit 1                                                                  &lt;BR /&gt;        ;;                                                                      &lt;BR /&gt;esac                                                                            &lt;BR /&gt;exit 0                                                                          &lt;BR /&gt;============================================ &lt;BR /&gt;# cat xvfbinit                                                                  &lt;BR /&gt;#!/sbin/sh                                                                      &lt;BR /&gt;#                                                                               &lt;BR /&gt;case "$1" in                                                                    &lt;BR /&gt;'start')                                                                        &lt;BR /&gt;&lt;BR /&gt;        # start the X Virtual Framebuffer (Xvfb) *dek* 02/17/00                 &lt;BR /&gt;        if [ -f /usr/bin/X11/Xvfb ]; then                                       &lt;BR /&gt;                echo "***Starting up the Virtual Frame Buffer on Screen 1***"   &lt;BR /&gt;                /usr/bin/X11/Xvfb :1 -screen 0 1152x900x8 &amp;gt; /app1/ofx/logs/Xvfb.&lt;BR /&gt;log 2&amp;gt;&amp;amp;1 &amp;amp;                                                                      &lt;BR /&gt;        fi                                                                      &lt;BR /&gt;        ;;                                                                      &lt;BR /&gt;&lt;BR /&gt;'stop')                                                                         &lt;BR /&gt;#        /usr/bin/pkill -9 -x -u 0 '(Xvfb)'                                     &lt;BR /&gt;        for I in `ps -ef | grep [X]vfb | awk '{print $2}'`                      &lt;BR /&gt;        do                                                                      &lt;BR /&gt;                kill -9 $I                                                      &lt;BR /&gt;        done                                                                    &lt;BR /&gt;        ;;                                                                      &lt;BR /&gt;*)                                                                              &lt;BR /&gt;        echo "Usage: $0 { start | stop }"                                       &lt;BR /&gt;        exit 1                                                                  &lt;BR /&gt;        ;;                                                                      &lt;BR /&gt;esac                                                                            &lt;BR /&gt;exit 0   &lt;BR /&gt;               &lt;BR /&gt;============================================&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Oct 2006 16:07:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885218#M280583</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2006-10-23T16:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: usage errors on startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885219#M280584</link>
      <description>OMG could it be that easy?&lt;BR /&gt;&lt;BR /&gt;Look at the mixture of single and double quotes...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;doubles on the actual case statement then singles on the values...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Oct 2006 16:09:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885219#M280584</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2006-10-23T16:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: usage errors on startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885220#M280585</link>
      <description>Hi Todd:&lt;BR /&gt;&lt;BR /&gt;It appears that you have violated the convention required for the startup scripts.&lt;BR /&gt;&lt;BR /&gt;One of four possible arguments will be received by any startup/shutdown script: "start_msg", "start", "stop_msg" or "stop".&lt;BR /&gt;&lt;BR /&gt;This is clearly seen in '/sbin/init.d/template".  The manpages for 'rc(1M)' documents this further.  The strings of "*_msg" are used to formulate the console checklist.  The arguments without "_msg" trigger the script to actually perform startup or shutdown work.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 23 Oct 2006 16:12:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885220#M280585</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-10-23T16:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: usage errors on startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885221#M280586</link>
      <description>Try removing the double quotes from around your "$1" so it is just $1 in the scripts and try again.</description>
      <pubDate>Mon, 23 Oct 2006 16:17:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885221#M280586</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-10-23T16:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: usage errors on startup scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885222#M280587</link>
      <description>And to clarify your question about 2 digit versus 3 digit sequencing numbers -- they are critically important! S95 and S095 will execute at very, very different time during bootup. The start/stop scripts are run in alphabetical order and the magnitude of the number portion is NOT used!! Instead, it is an alphabetical sort, the same as an ls listing. Take this list:&lt;BR /&gt; &lt;BR /&gt;S001abc &lt;BR /&gt;S01abc &lt;BR /&gt;S055abc &lt;BR /&gt;S195abc &lt;BR /&gt;S1abc &lt;BR /&gt;S55abc &lt;BR /&gt;S5abc&lt;BR /&gt; &lt;BR /&gt;This is the ls (or start/stop script) order of execution. You see that S01abc is run BEFORE S055 and S1abc is run AFTER S195abc. That's because the number is simply text and the sort is left to right.&lt;BR /&gt; &lt;BR /&gt;So while S95vxfb is probably correct as it will be run with all the S9------ scripts but it will AFTER S959abc because S95vxfb sorts after S959abc (numbers come before letters in ASCII -- see man ascii)</description>
      <pubDate>Mon, 23 Oct 2006 18:16:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usage-errors-on-startup-scripts/m-p/3885222#M280587</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-10-23T18:16:40Z</dc:date>
    </item>
  </channel>
</rss>

