
Hi,
How does Grml start Internet services?
I noticed that my grml does not have either inetd or xinetd installed. So how does my ssh, ftp services get started?
thanks

Tong (mlist4suntong@yahoo.com) writes:
I noticed that my grml does not have either inetd or xinetd installed. So how does my ssh, ftp services get started?
Plenty of services don't run from inetd / xinetd at all. They do their own listening. They get started in your /etc/runlevel.conf file. Here's a fragment of mine:
20 - S /etc/init.d/ssh 20 0,1,6 2,3,4,5 /etc/init.d/postfix 20 0,1,6 - /etc/init.d/vsftpd
Of course, the vsftp never gets turned on...
Coincidentally, /etc/runlevel.conf is one very nice feature of grml. You can easily see just which services run during given runlevels.
-- Chris

On Fri, 29 Feb 2008 18:16:58 -0600, C.M. Brannon wrote:
I noticed that my grml does not have either inetd or xinetd installed. So how does my ssh, ftp services get started?
Plenty of services don't run from inetd / xinetd at all. They do their own listening. They get started in your /etc/runlevel.conf file.
Thanks.
Found that the /etc/runlevel.conf file is from the file-rc package.
On looking at the package list of grml-medium http://grml.org/files/release-0.1-grml-medium/dpkg_list
I noticed that both file-rc & inetd packages are installed. In this case, how do services like ssh, ftp get started then?
thx

On Fri, 29 Feb 2008 18:16:58 -0600, C.M. Brannon wrote:
I noticed that my grml does not have either inetd or xinetd installed. So how does my ssh, ftp services get started?
Plenty of services don't run from inetd / xinetd at all. They do their own listening. They get started in your /etc/runlevel.conf file.
If ftpd is started from inetd, then one can use the /etc/inetd.conf and /etc/services to specify which port the ftpd is listening on.
If they are started from /etc/runlevel.conf, how can I specify which port the ftpd is listening on? In /etc/inetd.conf, one can also specify how to launch the ftpd, which switches to use, etc. how can I do this with /etc/runlevel.conf? I hope not directly fiddling with /etc/init.d/wu-ftpd.
Thanks

Tong writes:
If ftpd is started from inetd, then one can use the /etc/inetd.conf and /etc/services to specify which port the ftpd is listening on.
Changing the definition of ftp in /etc/services seems like a bad thing to do. But YMMV.
Now I'm getting out of my league, because I don't run an ftpd. But looking at the vsftpd.conf manpage, you can set a listen_port parameter. You can probably do something similar with wu-ftpd. Same definitely goes for sshd; I regularly run it on a nonstandard port, and I have to edit /etc/ssh/ssh-config for that. Most daemons have their own config file for specifying this and other parameters.
HTH, -- Chris
participants (2)
-
C.M. Brannon
-
T o n g