- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: the right way to stop/start inetd ??
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
Discussions
Discussions
Discussions
Forums
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
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-27-2002 01:50 PM
тАО03-27-2002 01:50 PM
I have noticed there are allot of differnt ways to start inetd. Is there on right or wrong way to do it?
to kill :
inetd -k
or
/sbin/init.d/inetd stop
to start:
inetd
gives me
root 6666 1 0 15:51:22 ? 0:00 inetd
Then:
/sbin/init.d/inetd start
Internet Services started
/sbin/init.d/inetd[53]: umask: The specified number is not valid for this comman
d.
root 6706 1 0 15:52:00 ? 0:00 /usr/sbin/inetd
or:
/usr/sbin/inetd
root 6810 1 0 15:53:09 ? 0:00 /usr/sbin/inetd
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 ?
Thanks
Richard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 01:58 PM
тАО03-27-2002 01:58 PM
Solution/sbin/init.d/inetd start (stop)
are the proper ways. These scripts call the inet binary out of /usr/sbin.
Not sure why you are getting the umask complaint, but I suspect it's something in the conf file.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 01:59 PM
тАО03-27-2002 01:59 PM
Re: the right way to stop/start inetd ??
# inetd -k
or
send the SIGTERM signal to the inetd process
# kill -15
To start, always use ..
# /sbin/init.d/inetd start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 02:03 PM
тАО03-27-2002 02:03 PM
Re: the right way to stop/start inetd ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 02:04 PM
тАО03-27-2002 02:04 PM
Re: the right way to stop/start inetd ??
The simplest way I have is
"inetd -c"
-c is equivalent to SIGHUP
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 02:08 PM
тАО03-27-2002 02:08 PM
Re: the right way to stop/start inetd ??
Try "inetd -c" to restart inetd. inetd will reread its configuration file /etc/inetd.conf.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 02:12 PM
тАО03-27-2002 02:12 PM
Re: the right way to stop/start inetd ??
inetd -c will reread the configuration file /etc/inetd.conf
/sbin/init.d/inetd stop , /sbin/init.d/start would kill all inetd process and restart.
inetd -k will kill the process (SIGHUP)
Check your inetd.conf file in /etc for the error you are getting.
Goodluck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 02:18 PM
тАО03-27-2002 02:18 PM
Re: the right way to stop/start inetd ??
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 02:22 PM
тАО03-27-2002 02:22 PM
Re: the right way to stop/start inetd ??
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.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 02:22 PM
тАО03-27-2002 02:22 PM
Re: the right way to stop/start inetd ??
If you've just made conf changes & want to implement them - then you do the inetd -c.
If you want to stop inet services totally then do the /sbin/init.d/inetd stop OR the inetd -k
I prefer to use the HP scripts for start & stops just to be safe - but thats just me.
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 02:25 PM
тАО03-27-2002 02:25 PM
Re: the right way to stop/start inetd ??
I've never had a problem or an network outage, it still leaves the current telnet, ftp... connections alive.
Just my thoughts,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 02:26 PM
тАО03-27-2002 02:26 PM
Re: the right way to stop/start inetd ??
I prefer to use rc scripts if they exist to start and stop daemons. That generally ensures everything is done properly.
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.
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.
/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.
Anyway, my /sbin/init.d/inetd's start section looks like:
'start')
if [ -f /etc/rc.config ]; then
. /etc/rc.config
else
echo "ERROR: /etc/rc.config defaults file MISSING"
fi
mask=`umask`
umask 000
[ -x /usr/sbin/inetd ] && /usr/sbin/inetd $INETD_ARGS
set_return
if [ $rval -eq 0 ]; then
echo "Internet Services started"
else
echo "Unable to start Internet Services"
fi
umask $mask
;;
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.
Darrell