- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cannot restart services
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
03-06-2007 07:21 PM
03-06-2007 07:21 PM
cannot restart services
I tried /etc/services restart
I got "execute permission denied"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2007 07:30 PM
03-06-2007 07:30 PM
Re: cannot restart services
Please read:
http://66.34.90.71/ITRCForumsEtiquette/after.html
on what to do AFTER raising questions
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
So far you have not awarded any points !
Which service do you want to restart ?
The answer to this will determine the detailed answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2007 07:30 PM
03-06-2007 07:30 PM
Re: cannot restart services
/sbin/init.d/servicename stop
/sbin/init.d/servicename start
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2007 07:31 PM
03-06-2007 07:31 PM
Re: cannot restart services
To re-read the inet configuration files use;
# inetd -c
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2007 07:31 PM
03-06-2007 07:31 PM
Re: cannot restart services
To start particular service syntax is
/sbin/init.d/service stop
/sbin/init.d/service start
e.g to start inetd daemon
/sbin/init.d/inetd start
/etc/services --> contains port numbers for particular services
Regards
Reshma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2007 07:38 PM
03-06-2007 07:38 PM
Re: cannot restart services
However, I can still telnet to the HP-UX box.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2007 07:42 PM
03-06-2007 07:42 PM
Re: cannot restart services
If you have made a chaneg to the inetd.conf file, you have to tell inetd to re-read the file :
inetd -c
Failing that, reboot your server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2007 07:43 PM
03-06-2007 07:43 PM
Re: cannot restart services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2007 07:45 PM
03-06-2007 07:45 PM
Re: cannot restart services
Problem solved
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2007 07:47 PM
03-06-2007 07:47 PM
Re: cannot restart services
I have assigned points to 0 of 23 responses to my questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2007 08:03 PM
03-06-2007 08:03 PM
Re: cannot restart services
you need to signal inetd of any changes you made in /etc/inetd.conf
This can either be done by
# /usr/sbin/inetd -c
or
# kill -1 $(UNIX95= ps -o pid= -C inetd)
If you get a permission denied message when you try to run an init script you may not have invoked it as root?
Also there could other issues which can be caused by what is happening in the script.
Maybe there is an su to another uid, or a service forks and changes ownership of the child who then may encounter some problem accessing a device or file that would require elevated privileges.
In the end you would have to look into the affected init script and find out where things go awry.
Also note that your init script may not have a case match for a "restart" argument.
Then you would have to first stop and then start.