<?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: lpsched has multiple session in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lpsched-has-multiple-session/m-p/4323073#M340982</link>
    <description>(I've asked the moderators to move this to HP-UX.)&lt;BR /&gt;&lt;BR /&gt;You should redo to the ps(1):&lt;BR /&gt;UNIX95=EXTENDED_PS ps -HfC lpsched -x&lt;BR /&gt;&lt;BR /&gt;Your output shows that the extra lpscheds are children of 19903.  lpsched probably creates these children like sendmail, when working on something to print.</description>
    <pubDate>Mon, 15 Dec 2008 06:06:10 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-12-15T06:06:10Z</dc:date>
    <item>
      <title>lpsched has multiple session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpsched-has-multiple-session/m-p/4323072#M340981</link>
      <description>I run ps -ef |grep lpsched on some systems found there are multisession on lpsched. Is it right? I have been told by HP engineer that lpsched should have only one session running at all. However I've been told by other HPUX expert saying that the multiple session is caused by the kernel setting. Does anyone have ideas why and how it is happening?&lt;BR /&gt;&lt;BR /&gt;#ps -ef |grep lpsched &lt;BR /&gt;      lp 21315 19903  0  Dec 12  ?         0:00 lpsched&lt;BR /&gt;      lp 21467 19903  0  Dec 12  ?         0:00 lpsched&lt;BR /&gt;      lp 19903     1  0  Dec 12  ?         2:43 lpsched&lt;BR /&gt;      lp 21658 19903  0  Dec 12  ?         0:00 lpsched&lt;BR /&gt;      lp 21377 19903  0  Dec 12  ?         0:00 lpsched&lt;BR /&gt;      lp 21712 19903  0  Dec 12  ?         0:00 lpsched&lt;BR /&gt;    root  3154  7197  0 22:33:31 pts/0     0:00 grep lpsched&lt;BR /&gt;      lp 21294 19903  0  Dec 12  ?         0:00 lpsched&lt;BR /&gt;      lp 21281 19903  0  Dec 12  ?         0:00 lpsched&lt;BR /&gt;      lp 21382 19903  0  Dec 12  ?         0:00 lpsched&lt;BR /&gt;      lp 21284 19903  0  Dec 12  ?         0:00 lpsched&lt;BR /&gt;      lp 21280 19903  0  Dec 12  ?         0:00 lpsched&lt;BR /&gt;      lp 21636 19903  0  Dec 12  ?         0:00 lpsched</description>
      <pubDate>Mon, 15 Dec 2008 03:59:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpsched-has-multiple-session/m-p/4323072#M340981</guid>
      <dc:creator>Johnson Zhu</dc:creator>
      <dc:date>2008-12-15T03:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: lpsched has multiple session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpsched-has-multiple-session/m-p/4323073#M340982</link>
      <description>(I've asked the moderators to move this to HP-UX.)&lt;BR /&gt;&lt;BR /&gt;You should redo to the ps(1):&lt;BR /&gt;UNIX95=EXTENDED_PS ps -HfC lpsched -x&lt;BR /&gt;&lt;BR /&gt;Your output shows that the extra lpscheds are children of 19903.  lpsched probably creates these children like sendmail, when working on something to print.</description>
      <pubDate>Mon, 15 Dec 2008 06:06:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpsched-has-multiple-session/m-p/4323073#M340982</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-15T06:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: lpsched has multiple session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpsched-has-multiple-session/m-p/4323074#M340983</link>
      <description>&amp;gt; I have been told by HP engineer that lpsched should have only one session running at all.&lt;BR /&gt; &lt;BR /&gt;Not true. If the spooler is stopped, then there will be no lpsched processes. When you start the spooler with lpsched, this process sees that it is the only one running and turns itself into a daemon running in the background. Then, each lp command will be processed by the first lpsched and another lpsched will become the monitor for the job, thus the first lpsched is the parent. Perfectly normal.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; However I've been told by other HPUX expert saying that the multiple session is caused by the kernel setting.&lt;BR /&gt; &lt;BR /&gt;Completely wrong. One daemon plus zero to hundreds of lpsched children depending on how many printers you have that are currently printing. The following command will help explain what is happening:&lt;BR /&gt; &lt;BR /&gt;UNIX95=1 ps -fHu lp&lt;BR /&gt; &lt;BR /&gt;The -H will show the process hierarchy.&lt;BR /&gt;  &lt;BR /&gt;You may have one or several printers malfunctioning (paper jams, out of paper, powered off, etc) which will cause the lpscheds to wait (forever). You'll need to kill the lpscheds that are stuck on bad printers.</description>
      <pubDate>Tue, 16 Dec 2008 02:25:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpsched-has-multiple-session/m-p/4323074#M340983</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-12-16T02:25:06Z</dc:date>
    </item>
  </channel>
</rss>

