<?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 Problem with startscript in boot mode in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/problem-with-startscript-in-boot-mode/m-p/5064932#M94477</link>
    <description>Hello.&lt;BR /&gt;I have following problem with starting binary program during boot proces.&lt;BR /&gt;Sorry that I can not send detailed information of biary but I will try to describe generally the issue in example:&lt;BR /&gt;Prerequisites:&lt;BR /&gt;Manually binary should be fired from command line by common user - lets call him user.&lt;BR /&gt;So I need to login as root and do:&lt;BR /&gt;su - user&lt;BR /&gt;nohup /whole/path/to/bin/binary_program &amp;amp;&lt;BR /&gt;exit&lt;BR /&gt;It works fine. I can logout and binary is run anyway.&lt;BR /&gt;&lt;BR /&gt;I have tried with different configurations and finally I tested manually following setting that works when fired from command line. &lt;BR /&gt;So I did:&lt;BR /&gt;1. In /sbin/rc4.d/ I created S888binary_program symlink to &lt;BR /&gt;/sbin/init.d/binary_program&lt;BR /&gt;2.Inside /sbin/init.d/binary_program&lt;BR /&gt;I put following two lines:&lt;BR /&gt;/usr/bin/su - user -c "/home/user/binary_program.sh " &amp;gt;&amp;gt; /dev/null&lt;BR /&gt;exit 0&lt;BR /&gt;3.File /home/user/binary_program.sh contains:&lt;BR /&gt;nohup /whole/path/to/bin/binary_program &amp;amp;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;When go to /sbin/rc4.d/ and I run &lt;BR /&gt;./S888binary_program&lt;BR /&gt;I starts the program as expected.&lt;BR /&gt;But after reboot process I can not see it as started.&lt;BR /&gt;&lt;BR /&gt;How I can debug this problem?&lt;BR /&gt;Maybe it is related to binary itself?&lt;BR /&gt;I will try to examine this with more simple program yet but maybe someone would have an idea what can be wrong.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 24 Aug 2007 03:00:27 GMT</pubDate>
    <dc:creator>MQ'ski</dc:creator>
    <dc:date>2007-08-24T03:00:27Z</dc:date>
    <item>
      <title>Problem with startscript in boot mode</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-startscript-in-boot-mode/m-p/5064932#M94477</link>
      <description>Hello.&lt;BR /&gt;I have following problem with starting binary program during boot proces.&lt;BR /&gt;Sorry that I can not send detailed information of biary but I will try to describe generally the issue in example:&lt;BR /&gt;Prerequisites:&lt;BR /&gt;Manually binary should be fired from command line by common user - lets call him user.&lt;BR /&gt;So I need to login as root and do:&lt;BR /&gt;su - user&lt;BR /&gt;nohup /whole/path/to/bin/binary_program &amp;amp;&lt;BR /&gt;exit&lt;BR /&gt;It works fine. I can logout and binary is run anyway.&lt;BR /&gt;&lt;BR /&gt;I have tried with different configurations and finally I tested manually following setting that works when fired from command line. &lt;BR /&gt;So I did:&lt;BR /&gt;1. In /sbin/rc4.d/ I created S888binary_program symlink to &lt;BR /&gt;/sbin/init.d/binary_program&lt;BR /&gt;2.Inside /sbin/init.d/binary_program&lt;BR /&gt;I put following two lines:&lt;BR /&gt;/usr/bin/su - user -c "/home/user/binary_program.sh " &amp;gt;&amp;gt; /dev/null&lt;BR /&gt;exit 0&lt;BR /&gt;3.File /home/user/binary_program.sh contains:&lt;BR /&gt;nohup /whole/path/to/bin/binary_program &amp;amp;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;When go to /sbin/rc4.d/ and I run &lt;BR /&gt;./S888binary_program&lt;BR /&gt;I starts the program as expected.&lt;BR /&gt;But after reboot process I can not see it as started.&lt;BR /&gt;&lt;BR /&gt;How I can debug this problem?&lt;BR /&gt;Maybe it is related to binary itself?&lt;BR /&gt;I will try to examine this with more simple program yet but maybe someone would have an idea what can be wrong.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Aug 2007 03:00:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-startscript-in-boot-mode/m-p/5064932#M94477</guid>
      <dc:creator>MQ'ski</dc:creator>
      <dc:date>2007-08-24T03:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with startscript in boot mode</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-startscript-in-boot-mode/m-p/5064933#M94478</link>
      <description>Well, did you demonize it?&lt;BR /&gt;Can you print the PID when you do nohup?  Is there a nohup.out file?&lt;BR /&gt;It would help if you didn't send the su - user output to /dev/null.&lt;BR /&gt;&lt;BR /&gt;You may have to use tusc:&lt;BR /&gt;nohup tusc -fp -o tusc.out /whole/path/to/bin/binary_program &amp;amp;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Aug 2007 04:02:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-startscript-in-boot-mode/m-p/5064933#M94478</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-24T04:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with startscript in boot mode</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-startscript-in-boot-mode/m-p/5064934#M94479</link>
      <description>I think the problem was in /etc/inittab&lt;BR /&gt;default initdefault was 3 instead of 4.&lt;BR /&gt;I will test it now</description>
      <pubDate>Fri, 24 Aug 2007 04:10:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-startscript-in-boot-mode/m-p/5064934#M94479</guid>
      <dc:creator>MQ'ski</dc:creator>
      <dc:date>2007-08-24T04:10:01Z</dc:date>
    </item>
  </channel>
</rss>

