- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: I can't start spooler
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 10:50 AM
04-12-2002 10:50 AM
I can't start spooler
I can't start spooler whit the command lpsched. The system reply whit:
sdmadr8:/home/root >lpsched
scheduler is running
If i attemp stop the spooler The system reply whit:
sdmadr8:/home/root >lpshut
lpshut: scheduler not running
thank for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 10:52 AM
04-12-2002 10:52 AM
Re: I can't start spooler
You need to rm the SCHEDLOCK file in the /var/spool/lp directory before you can restart the lp spooler.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 10:52 AM
04-12-2002 10:52 AM
Re: I can't start spooler
Check /var/spool/lp directory. If you have a file called - SCHEDLOCK, then delete it and try again.
Also try with SAM
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 12:22 PM
04-12-2002 12:22 PM
Re: I can't start spooler
I didn't see any errors in your posting.
It is the normal way the lp command behaves.
If you want to start lp and give #lpsched
it will give you a message showing your scheduler has been started.
by running #lpshut
it gives the message that Scheduler is not running.....this is the mesage after your command.
So, in your case nothing wrong. everything is alright.
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 01:11 PM
04-12-2002 01:11 PM
Re: I can't start spooler
What Jose is seeing is what will always happen when the spooler crashes or is killed w/kill -9. The SCHEDLOCK file is not removed in these cases.
When the lpsched script runs it sees the SCHEDLOCK & stops as it thinks the spooler is still running.
When the lpshut script runs it checks for the PID specified in the PID file, does not find it & knows spooler is not running.
Test it yourself on a test box - kill -9 the lpsched PID & then try to start/stop.
Seen it many times......
Best Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 03:15 PM
04-12-2002 03:15 PM
Re: I can't start spooler
2. rm /var/spool/lp/FIFO
rm /var/spool/lp/SCHEDLOCK
3. > outputq
4. lpsched
6. vefiry
ps -ef |grep lpsched
lpstat -t |more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2002 01:40 AM
04-13-2002 01:40 AM
Re: I can't start spooler
The Files SCHEDLOCK and FIFO don't exist. and if i start de spooler (lpsched) the system reply:
the spoleer is already started.
if i stop de spooler (lpshut) the system reply:
then spooler is already stoped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2002 02:50 AM
04-13-2002 02:50 AM
Re: I can't start spooler
Check for hung spooler processes
The following script was supplied by Bill Hassell not so long ago
#!/usr/bin/sh
/sbin/init.d/lp stop
sleep 2
PID4LP=$(/usr/bin/ps -u blh | awk '$1 !~ /PID/ {print $1}')
if [ $PID4LP#} -ne 0 ]
then
for PIDLP in $PID4LP
do
/usr/bin/kill -9 $PIDLP
done
/sbin/init.d/lp start
Regards
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2002 03:26 AM
04-13-2002 03:26 AM
Re: I can't start spooler
sorry, the above script doesn't appear to be correct. I am sorting it out at the moment and will reply with correct
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2002 03:58 AM
04-13-2002 03:58 AM
Re: I can't start spooler
Try
#!/usr/bin/sh
/sbin/init.d/lp stop 2> /dev/null
sleep2
ps -u lp | awk '$1 !~ /PID/ {print $1}' >> /tmp/process
PROCESS=/tmp/process
for lpproc in $(cat $PROCESS)
do
kill -9 $lpproc
done
/sbin/init.d/lp start
I think Bill just passed the script as an example of what you could do, not exactly what to do
Regards
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 01:40 AM
04-15-2002 01:40 AM
Re: I can't start spooler
I exec the script but the problem continue.
I see that the process related whit the spooler no exist in the system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 10:02 AM
04-15-2002 10:02 AM
Re: I can't start spooler
Check for current lpsched patches:
10.20 => PHCO_25109
http://us-support2.external.hp.com/wpsl/bin/doc.pl/screen=wpslDisplayPatch/sid=ddeedf9907ad231a08?PACH_NAM=PHCO_25109&HW=s800&OS=10.20
11.0 => PHCO_25110
http://us-support2.external.hp.com/wpsl/bin/doc.pl/screen=wpslDisplayPatch/sid=818f3625096431a344?PATCH_PATH=/hp-ux_patches/s700_800/11.X/PHCO_25110&HW=s800&OS=11.00
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 10:47 AM
04-15-2002 10:47 AM
Re: I can't start spooler
If you do a ps -ef | grep lp do u see a lpsched owned by lp , and the ppid set to 1 ?
and also there shopuld be only one entry .If not so then you will have to reload the lp services , a good place is to check the ownership for the direcotries under /var/spool/lp . What is the error you get when u try doing the same through SAM ?
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 11:16 AM
04-15-2002 11:16 AM
Re: I can't start spooler
error in the file /var/adm/lp/log.
the solutions is restore the spooler from SAM.