<?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: the right way to stop/start inetd ?? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692305#M55698</link>
    <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;I prefer to use rc scripts if they exist to start and stop daemons.  That generally ensures everything is done properly.&lt;BR /&gt;&lt;BR /&gt;I don't stop inetd.  I may disable some of its services at times by changing inetd.conf. Then I simply use "inetd -c" to reread the config.&lt;BR /&gt;&lt;BR /&gt;I don't guess it hurts to stop inetd and restart it.  Just be aware that no one will be able to rlogin, telnet, or use any other inetd controlled services until you start inetd again.&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/inetd uses the umask command to capture the current setting, temporarily change it to 000 before starting inetd, then resetting umask to the saved setting.  Why?  I don't know.  Child processes of inetd should inherit it's umask so they must need a 000 umask.&lt;BR /&gt;&lt;BR /&gt;Anyway, my /sbin/init.d/inetd's start section looks like:&lt;BR /&gt;&lt;BR /&gt;'start')&lt;BR /&gt;if [ -f /etc/rc.config ]; then&lt;BR /&gt;      . /etc/rc.config&lt;BR /&gt;else&lt;BR /&gt;      echo "ERROR: /etc/rc.config defaults file MISSING"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;mask=`umask`&lt;BR /&gt;umask 000&lt;BR /&gt;&lt;BR /&gt;[ -x /usr/sbin/inetd ] &amp;amp;&amp;amp; /usr/sbin/inetd $INETD_ARGS&lt;BR /&gt;set_return&lt;BR /&gt;if [ $rval -eq 0 ]; then&lt;BR /&gt;      echo "Internet Services started"&lt;BR /&gt;else&lt;BR /&gt;      echo "Unable to start Internet Services"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;umask $mask&lt;BR /&gt;;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Line 53 is "umask $mask".  You should check into why that gives you an error.  I'd start by seeing what "umask" without an argument returns.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
    <pubDate>Wed, 27 Mar 2002 22:26:26 GMT</pubDate>
    <dc:creator>Darrell Allen</dc:creator>
    <dc:date>2002-03-27T22:26:26Z</dc:date>
    <item>
      <title>the right way to stop/start inetd ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692294#M55687</link>
      <description>Hello ..&lt;BR /&gt;I have noticed there are allot of differnt ways to start inetd. Is there on right or wrong way to do it?&lt;BR /&gt;&lt;BR /&gt;to kill :&lt;BR /&gt;inetd -k &lt;BR /&gt;or &lt;BR /&gt;/sbin/init.d/inetd stop&lt;BR /&gt;&lt;BR /&gt;to start:&lt;BR /&gt;&lt;BR /&gt;inetd &lt;BR /&gt;&lt;BR /&gt;gives me &lt;BR /&gt;&lt;BR /&gt;    root  6666     1  0 15:51:22 ?         0:00 inetd&lt;BR /&gt;&lt;BR /&gt;Then:&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/inetd start &lt;BR /&gt;Internet Services started&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/inetd[53]: umask: The specified number is not valid for this comman&lt;BR /&gt;d.&lt;BR /&gt;&lt;BR /&gt;    root  6706     1  0 15:52:00 ?         0:00 /usr/sbin/inetd&lt;BR /&gt;&lt;BR /&gt;or:&lt;BR /&gt;&lt;BR /&gt; /usr/sbin/inetd&lt;BR /&gt;&lt;BR /&gt;root  6810     1  0 15:53:09 ?         0:00 /usr/sbin/inetd&lt;BR /&gt;&lt;BR /&gt;is there one way to stop and start? Or does it really matter? Why would I get an error with /sbin/init.d/inetd start ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Richard</description>
      <pubDate>Wed, 27 Mar 2002 21:50:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692294#M55687</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-03-27T21:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: the right way to stop/start inetd ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692295#M55688</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/inetd start (stop) &lt;BR /&gt;&lt;BR /&gt;are the proper ways. These scripts call the inet binary out of /usr/sbin.&lt;BR /&gt;&lt;BR /&gt;Not sure why you are getting the umask complaint, but I suspect it's something in the conf file.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 27 Mar 2002 21:58:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692295#M55688</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-03-27T21:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: the right way to stop/start inetd ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692296#M55689</link>
      <description>The correct way to stop it are ..&lt;BR /&gt;# inetd -k&lt;BR /&gt;or &lt;BR /&gt;send the SIGTERM signal to the inetd process&lt;BR /&gt;# kill -15 &lt;PID&gt;&lt;BR /&gt;&lt;BR /&gt;To start, always use ..&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/inetd start&lt;BR /&gt;&lt;/PID&gt;</description>
      <pubDate>Wed, 27 Mar 2002 21:59:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692296#M55689</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-03-27T21:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: the right way to stop/start inetd ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692297#M55690</link>
      <description>Oh .. the umask error you're seeing .. check /etc/inetd.conf and I bet you got an invalid umask defined in one of the services, maybe the the ftpd entry .. ?</description>
      <pubDate>Wed, 27 Mar 2002 22:03:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692297#M55690</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-03-27T22:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: the right way to stop/start inetd ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692298#M55691</link>
      <description>Richard,&lt;BR /&gt;&lt;BR /&gt;The simplest way I have is&lt;BR /&gt;&lt;BR /&gt;"inetd -c"&lt;BR /&gt;&lt;BR /&gt;-c is equivalent to SIGHUP&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 27 Mar 2002 22:04:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692298#M55691</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-03-27T22:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: the right way to stop/start inetd ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692299#M55692</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;Try "inetd -c" to restart inetd. inetd will reread its configuration file /etc/inetd.conf.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Mar 2002 22:08:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692299#M55692</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-03-27T22:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: the right way to stop/start inetd ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692300#M55693</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;inetd -c will reread the configuration file /etc/inetd.conf&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/inetd stop , /sbin/init.d/start would kill all inetd process and restart. &lt;BR /&gt;&lt;BR /&gt;inetd -k will kill the process (SIGHUP)&lt;BR /&gt;&lt;BR /&gt;Check your inetd.conf file in /etc for the error you are getting.&lt;BR /&gt;&lt;BR /&gt;Goodluck&lt;BR /&gt;-USA..&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Mar 2002 22:12:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692300#M55693</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-03-27T22:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: the right way to stop/start inetd ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692301#M55694</link>
      <description>hmmm so basicly they all do the same thing .. =)&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Wed, 27 Mar 2002 22:18:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692301#M55694</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-03-27T22:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: the right way to stop/start inetd ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692302#M55695</link>
      <description>Well,&lt;BR /&gt;&lt;BR /&gt;inetd -k and the start up scripts will take the system out of network until inetd starts. Inetd -c or SIGHUP can be issued without having to sacrifice the network outage.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 27 Mar 2002 22:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692302#M55695</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-03-27T22:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: the right way to stop/start inetd ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692303#M55696</link>
      <description>Depends....&lt;BR /&gt;&lt;BR /&gt;If you've just made conf changes &amp;amp; want to implement them - then you do the inetd -c.&lt;BR /&gt;&lt;BR /&gt;If you want to stop inet services totally then do the /sbin/init.d/inetd stop  OR  the inetd -k&lt;BR /&gt;&lt;BR /&gt;I prefer to use the HP scripts for start &amp;amp; stops just to be safe - but thats just me.&lt;BR /&gt;&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 27 Mar 2002 22:22:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692303#M55696</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-03-27T22:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: the right way to stop/start inetd ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692304#M55697</link>
      <description>I use /sbin/init.d/inetd stop/start&lt;BR /&gt;&lt;BR /&gt;I've never had a problem or an network outage, it still leaves the current telnet, ftp... connections alive.&lt;BR /&gt;&lt;BR /&gt;Just my thoughts,&lt;BR /&gt;C</description>
      <pubDate>Wed, 27 Mar 2002 22:25:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692304#M55697</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-03-27T22:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: the right way to stop/start inetd ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692305#M55698</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;I prefer to use rc scripts if they exist to start and stop daemons.  That generally ensures everything is done properly.&lt;BR /&gt;&lt;BR /&gt;I don't stop inetd.  I may disable some of its services at times by changing inetd.conf. Then I simply use "inetd -c" to reread the config.&lt;BR /&gt;&lt;BR /&gt;I don't guess it hurts to stop inetd and restart it.  Just be aware that no one will be able to rlogin, telnet, or use any other inetd controlled services until you start inetd again.&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/inetd uses the umask command to capture the current setting, temporarily change it to 000 before starting inetd, then resetting umask to the saved setting.  Why?  I don't know.  Child processes of inetd should inherit it's umask so they must need a 000 umask.&lt;BR /&gt;&lt;BR /&gt;Anyway, my /sbin/init.d/inetd's start section looks like:&lt;BR /&gt;&lt;BR /&gt;'start')&lt;BR /&gt;if [ -f /etc/rc.config ]; then&lt;BR /&gt;      . /etc/rc.config&lt;BR /&gt;else&lt;BR /&gt;      echo "ERROR: /etc/rc.config defaults file MISSING"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;mask=`umask`&lt;BR /&gt;umask 000&lt;BR /&gt;&lt;BR /&gt;[ -x /usr/sbin/inetd ] &amp;amp;&amp;amp; /usr/sbin/inetd $INETD_ARGS&lt;BR /&gt;set_return&lt;BR /&gt;if [ $rval -eq 0 ]; then&lt;BR /&gt;      echo "Internet Services started"&lt;BR /&gt;else&lt;BR /&gt;      echo "Unable to start Internet Services"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;umask $mask&lt;BR /&gt;;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Line 53 is "umask $mask".  You should check into why that gives you an error.  I'd start by seeing what "umask" without an argument returns.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Wed, 27 Mar 2002 22:26:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-right-way-to-stop-start-inetd/m-p/2692305#M55698</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-03-27T22:26:26Z</dc:date>
    </item>
  </channel>
</rss>

