HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem in stopping Printer Scheduler
Operating System - HP-UX
1826103
Members
4643
Online
109690
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
01-09-2002 02:03 AM
01-09-2002 02:03 AM
Hi,
In our HP9000 System running HP-UX 10.20, we are not able to stop the Printer Scheduler(lpshut). By giving lpshut, it comes out with "Scheduler Stopped", but acutally the scheduler is not terminating by giving this, lpstat still shows "Scheduler is Running".
For this issue we had rebooted the system once, by changing rc configuration LP=0. After reboot also the Scheduler is in running status.
.
We had configured network printers using Jetadmin in this system.
Could anyone help me out on this regard?
Thanks and Regards,
Shyam.
In our HP9000 System running HP-UX 10.20, we are not able to stop the Printer Scheduler(lpshut). By giving lpshut, it comes out with "Scheduler Stopped", but acutally the scheduler is not terminating by giving this, lpstat still shows "Scheduler is Running".
For this issue we had rebooted the system once, by changing rc configuration LP=0. After reboot also the Scheduler is in running status.
.
We had configured network printers using Jetadmin in this system.
Could anyone help me out on this regard?
Thanks and Regards,
Shyam.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 02:32 AM
01-09-2002 02:32 AM
Solution
Hi,
You are likely to have two lpsched lp schedulers running.
Execute the following to clear and restart the scheduler and force a removal of the lock and pipe after the kill:
# lpshut
# for i in `ps -fae|grep lpsched|grep -v grep|awk '{print $2}'`;do kill -HUP $i; kill -KILL $i; done
# rm -f /var/spool/lp/FIFO /var/spool/lp/SCHEDLOCK
# lpsched
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
You are likely to have two lpsched lp schedulers running.
Execute the following to clear and restart the scheduler and force a removal of the lock and pipe after the kill:
# lpshut
# for i in `ps -fae|grep lpsched|grep -v grep|awk '{print $2}'`;do kill -HUP $i; kill -KILL $i; done
# rm -f /var/spool/lp/FIFO /var/spool/lp/SCHEDLOCK
# lpsched
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 06:39 AM
01-09-2002 06:39 AM
Re: Problem in stopping Printer Scheduler
For better reliability, I would try to avoid grep at all cost since grep will find processes like 2lpsched33 and user names like lpschedx and process arguments like: find /var -name lpsched, etc
Instead, ask ps to look for the process name explicitly:
Old:
for i in `ps -fae|grep lpsched|grep -v grep|awk '{print $2}'`;do kill -HUP $i; kill -KILL $i; done
New:
for i in $(UNIX95= ps -fC lpsched |awk '{print $2}');do kill -HUP $i; kill -KILL $i; done
Also, the use of backticks (grave accent, etc) is deprecated in POSIX man pages such as ksh and sh-posix. They are very easily misread as apostrophes or flyspecks on a fax, and some fonts make them impossible to decode.
Bill Hassell, sysadmin
Instead, ask ps to look for the process name explicitly:
Old:
for i in `ps -fae|grep lpsched|grep -v grep|awk '{print $2}'`;do kill -HUP $i; kill -KILL $i; done
New:
for i in $(UNIX95= ps -fC lpsched |awk '{print $2}');do kill -HUP $i; kill -KILL $i; done
Also, the use of backticks (grave accent, etc) is deprecated in POSIX man pages such as ksh and sh-posix. They are very easily misread as apostrophes or flyspecks on a fax, and some fonts make them impossible to decode.
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP