LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-30-2005, 01:33 PM   #1
gpl
LQ Newbie
 
Registered: Dec 2004
Location: Pristina
Distribution: Suse 9.0
Posts: 2

Rep: Reputation: 0
RFC 868 udp 37 time-udp


hi , I'm using SuSe 9.0 linux and I have some problems starting eey /etc/xinedt.d/time-udp service , I have configured this file as you can see below :


# default: off
# description: An RFC 868 time server. This is the udp version.

service time
{
type = INTERNAL UNLISTED
id = time-dgram
socket_type = dgram
protocol = udp
user = root
wait = no
disable = no
port = 37
}

is this a correct way or I have still to make some changes , on this way when I try to start this service i got this message :

gpl:/etc/xinetd.d # /etc/xinetd.d/time-udp start
/etc/xinetd.d/time-udp: line 4: service: command not found
/etc/xinetd.d/time-udp: line 6: type: =: not found
/etc/xinetd.d/time-udp: line 6: type: INTERNAL: not found
/etc/xinetd.d/time-udp: line 6: type: UNLISTED: not found
Try `id --help' for more information.
/etc/xinetd.d/time-udp: line 8: socket_type: command not found
/etc/xinetd.d/time-udp: line 9: protocol: command not found
/etc/xinetd.d/time-udp: line 10: user: command not found
/etc/xinetd.d/time-udp: line 11: wait: `=': not a pid or valid job spec
/etc/xinetd.d/time-udp: line 11: wait: `no': not a pid or valid job spec
disable: Operation failed: client-error-not-found
/etc/xinetd.d/time-udp: line 13: port: command not found

Thanks in advance

~gpl
 
Old 03-31-2005, 06:56 AM   #2
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
This file isn't an executable startup script, it is a config file for xinetd, which is an internet superdaemon that starts up other services when they are needed. Xinetd is always running on your computer, your next step should be to tell it to use the script you made to start the time server when it is needed.

What you should do is once you have your /etc/xinedt.d/time-udp file set up you need to open the config file for xinetd (I think it should just be /etc/xinetd.conf?) and set the lines for time-udp. I don't have a SUSE based distro to look at for an example, but my Slackware inetd.conf has a line:
Code:
time    dgram   udp     wait    root    internal
Yours will look somewhat similar, it's possible to find the exact syntax by examining other entries in the file or looking at:
Code:
man xinetd.conf
Once you have the config file for xinetd set up, you simply need to restart the xinetd service. There are likely specific instructions for this at the top of the configuration file, but if not you can:
Code:
ps -ef | grep xinetd
kill -HUP {PID number of the xinetd service from the ps command above}
 
Old 03-31-2005, 10:07 AM   #3
gpl
LQ Newbie
 
Registered: Dec 2004
Location: Pristina
Distribution: Suse 9.0
Posts: 2

Original Poster
Rep: Reputation: 0
one more questions mate

first of all thanks a lot , after I've posted these problem I saw that this file isn't executable cuz i got a message like "bad format file not execute" , but I wanna ask you a questions for xinetd.conf file right now i have in this condition:

#
# xinetd.conf
#
# Copyright (c) 1998-2001 SuSE GmbH Nuernberg, Germany.
# Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany.
#

defaults
{
log_type = FILE /var/log/xinetd.log
log_on_success = HOST EXIT DURATION
log_on_failure = HOST ATTEMPT
# only_form = localhost
instances = 30
cps = 50 10

#
# The specification of an interface is interesting, if we are on a firewall.
# For example, if you only want to provide services from an internal
# network interface, you may specify your internal interfaces IP-Address.
#
# interface = 127.0.0.1


and you've told me as far as I understood to edit these lines :

code:

time dgram udp wait root internal

if so , should I delete first the lines which are currently in xinetd.conf or I should put them below or my questions has not to do with it : D

and for the end I can see now with netstat -uln the port udp 37

thanks again

gpl
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
connected UDP vishalsaxena_snist Linux - Networking 1 06-19-2005 02:13 PM
Attacks with UDP.PL, Help. LittleEvilBunny Linux - Security 4 12-15-2004 09:21 AM
udp packets m00t00 Programming 1 11-04-2004 09:20 PM
How to receive UDP and ICMP packets, by one UDP socket(PMTUD) myself_rajat Linux - Networking 0 05-28-2004 05:43 AM
UDP tutorials whitefox Programming 1 02-25-2004 06:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration