Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] The meaning of .d in init.d conf.d
View unanswered posts
View posts from last 24 hours

rackathon
Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
gentleman
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2005
Posts: 138
Location: Germany, Paderborn

PostPosted: Sun Dec 11, 2005 7:54 am    Post subject: [solved] The meaning of .d in init.d conf.d Reply with quote

Hey, can anyone out there tell me about the meaning of the .d in the names of those directories?

Last edited by gentleman on Sun Dec 11, 2005 9:09 am; edited 1 time in total
Back to top
View user's profile Send private message
s3ntinel
n00b
n00b


Joined: 04 Apr 2005
Posts: 64

PostPosted: Sun Dec 11, 2005 8:13 am    Post subject: Reply with quote

where the daemons are stored and controlled and configured?
Back to top
View user's profile Send private message
ecatmur
Veteran
Veteran


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Sun Dec 11, 2005 8:15 am    Post subject: Reply with quote

I think it means snippets of things that could all be in one flat file, but aren't for convenience - like /etc/cron.d, /etc/modules.autoload.d, etc.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
cokehabit
Veteran
Veteran


Joined: 22 Apr 2004
Posts: 3202
Location: 'Til we have built Jerusalem In England's green and pleasant land

PostPosted: Sun Dec 11, 2005 8:23 am    Post subject: Reply with quote

it signifies that it will be a background process
_________________
pkgcore, the newest and best portage replacement
Back to top
View user's profile Send private message
hensan
l33t
l33t


Joined: 26 Jun 2003
Posts: 866
Location: Sweden

PostPosted: Sun Dec 11, 2005 8:33 am    Post subject: Reply with quote

Could it be that the .d means "directory" as opposed to a regular file, so that you can easily see the difference even if your terminal doesn't support colors.
Back to top
View user's profile Send private message
marcion
Apprentice
Apprentice


Joined: 14 Mar 2005
Posts: 158
Location: England

PostPosted: Sun Dec 11, 2005 8:33 am    Post subject: Re: The meaning of .d in init.d conf.d Reply with quote

gentleman wrote:
Hey, can anyone out there tell me about the meaning of the .d in the names of those directories?


I always assumed that d stood for daemon, it would be interesting to know who chose it originally.
Back to top
View user's profile Send private message
plasmagunman
l33t
l33t


Joined: 07 Jun 2002
Posts: 604
Location: berlin

PostPosted: Sun Dec 11, 2005 9:00 am    Post subject: Reply with quote

i vote for "directory".
_________________
please, feel free to correct my english. - por favor, corrige mi español.
Back to top
View user's profile Send private message
trae
n00b
n00b


Joined: 22 Apr 2005
Posts: 51
Location: Finland

PostPosted: Sun Dec 11, 2005 9:07 am    Post subject: Reply with quote

Yes, it means "daemon". Daemon is a program, which runs in the background, and takes care of some particular task. The term is coined from Maxwell's demon.
Back to top
View user's profile Send private message
gentleman
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2005
Posts: 138
Location: Germany, Paderborn

PostPosted: Sun Dec 11, 2005 9:09 am    Post subject: Reply with quote

Very nice. First I assumed "dir", too. But then I found even files with an .d-ending. Thanks for that.
Back to top
View user's profile Send private message
Taladar
Guru
Guru


Joined: 09 Oct 2004
Posts: 456
Location: Bielefeld, Germany

PostPosted: Sun Dec 11, 2005 9:28 am    Post subject: Reply with quote

I believe the .d (note the dot) stands for directory. The d for daemon is more often found without a dot (httpd.conf, ...)
Back to top
View user's profile Send private message
ecatmur
Veteran
Veteran


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Sun Dec 11, 2005 9:34 am    Post subject: Reply with quote

gentleman wrote:
Very nice. First I assumed "dir", too. But then I found even files with an .d-ending. Thanks for that.
The only files ending .d on my system are some metapost (LaTeX) files (oh, and some in Portage; but that doesn't count as they don't get installed under those names).
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
makomk
n00b
n00b


Joined: 15 Jul 2005
Posts: 45
Location: Not all there

PostPosted: Sun Dec 11, 2005 9:39 am    Post subject: Reply with quote

I'm pretty sure the .d stands for directory - there are some which have nothing to do with daemons, modules.d for example. I'm not sure of the significance of the .d, though. (As someone else said, a d suffix without a dot does generally stand for daemon, though.)
Back to top
View user's profile Send private message
gentleman
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2005
Posts: 138
Location: Germany, Paderborn

PostPosted: Sun Dec 11, 2005 9:42 am    Post subject: Reply with quote

Hm, seems as were the solution not as easy as thought :D:D
Back to top
View user's profile Send private message
plasmagunman
l33t
l33t


Joined: 07 Jun 2002
Posts: 604
Location: berlin

PostPosted: Sun Dec 11, 2005 10:57 am    Post subject: Reply with quote

gentleman wrote:
First I assumed "dir", too. But then I found even files with an .d-ending.

for example? on my system
Code:
find /etc/ -name "*.d" -type f
doesn't find anything, only "-type d" does.
_________________
please, feel free to correct my english. - por favor, corrige mi español.
Back to top
View user's profile Send private message
cokehabit
Veteran
Veteran


Joined: 22 Apr 2004
Posts: 3202
Location: 'Til we have built Jerusalem In England's green and pleasant land

PostPosted: Sun Dec 11, 2005 9:19 pm    Post subject: Reply with quote

yes everyone, i am right
_________________
pkgcore, the newest and best portage replacement
Back to top
View user's profile Send private message
ecatmur
Veteran
Veteran


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Mon Dec 12, 2005 2:47 am    Post subject: Reply with quote

Any evidence?
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
Enlight
Veteran
Veteran


Joined: 28 Oct 2004
Posts: 3479
Location: Alsace (France)

PostPosted: Mon Dec 12, 2005 3:35 am    Post subject: Reply with quote

makomk wrote:
I'm pretty sure the .d stands for directory - there are some which have nothing to do with daemons, modules.d for example. I'm not sure of the significance of the .d, though. (As someone else said, a d suffix without a dot does generally stand for daemon, though.)


exactly what I thought.
_________________
le "lol" est aux boulets ce que le ";" est au programmeurs
Back to top
View user's profile Send private message
Q-collective
Veteran
Veteran


Joined: 22 Mar 2004
Posts: 1915
Location: You really wanna know?

PostPosted: Mon Dec 12, 2005 5:00 am    Post subject: Reply with quote

So smarties, if .d stands for directory, why are there files ending with it, or why isn't every directory ending with it?

s3ntinel wrote:
where the daemons are stored and controlled and configured?

+1 Insightful
_________________
Member of the Dutch section of the Committee for a Workers International
Back to top
View user's profile Send private message
plasmagunman
l33t
l33t


Joined: 07 Jun 2002
Posts: 604
Location: berlin

PostPosted: Mon Dec 12, 2005 6:02 am    Post subject: Reply with quote

Q-collective wrote:
So smarties, if .d stands for directory, why are there files ending with it, or why isn't every directory ending with it?

can anyone name an example for files ending with ".d", at least i can't find none. latex-files don't count, since the extension ".d" can represent a special not-so-famous filetype of a special (sub)project. we are talking about "The meaning of .d in init.d conf.d", as i understand, the ".d"s in /etc/.

and we don't need to denote all directories with ".d", since most of them are unambiguous. i think in the first years of unix programs like init, cron,... had a conf-file and a conf-directory, perhaps the file named /etc/program.conf and the directory named /etc/program.d/. so, if there was possibility of confusion they put the ".d". and please, don't ask why they don't get rid of the ".d" once the possibility of confusion is gone. you will never find 100% logic on a 30 year old system.

Quote:

s3ntinel wrote:
where the daemons are stored and controlled and configured?

+1 Insightful


if ".d" stands for daemon, what are the daemons controlled and configured by the following directories?
Code:
/etc/X11/wmsession.d
/etc/env.d
/etc/gnome/panel-config/panel.d
/etc/bash_completion.d
/etc/modules.d
/etc/profile.d
/etc/modules.autoload.d

_________________
please, feel free to correct my english. - por favor, corrige mi español.
Back to top
View user's profile Send private message
plasmagunman
l33t
l33t


Joined: 07 Jun 2002
Posts: 604
Location: berlin

PostPosted: Mon Dec 12, 2005 6:09 am    Post subject: /etc/*.d : daemon or directory? Reply with quote

that's just the poll for the discussion over there.
_________________
please, feel free to correct my english. - por favor, corrige mi español.
Back to top
View user's profile Send private message
ecatmur
Veteran
Veteran


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Mon Dec 12, 2005 6:11 am    Post subject: Reply with quote

Quote:
So smarties, if .d stands for directory, why are there files ending with it, or why isn't every directory ending with it?


There aren't. (Well, OK, some LaTeX metapost stuff, and some files in /usr/portage that are installed into .d directories.)

.d directories are used when there is or could be a file with the same or similar name, to prevent confusion. e.g. /etc/bash_completion{,.d}, /etc/profile{,.d}, /etc/X11/xinit/xinitrc{,.d}.

edit: plasmagunman: exactly, great explanation. Of course the history explains a lot...
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?


Last edited by ecatmur on Mon Dec 12, 2005 6:23 am; edited 2 times in total
Back to top
View user's profile Send private message
plasmagunman
l33t
l33t


Joined: 07 Jun 2002
Posts: 604
Location: berlin

PostPosted: Mon Dec 12, 2005 6:12 am    Post subject: Reply with quote

sorry, i could not resist: i just opened a poll :oops: .
_________________
please, feel free to correct my english. - por favor, corrige mi español.
Back to top
View user's profile Send private message
ecatmur
Veteran
Veteran


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Mon Dec 12, 2005 6:24 am    Post subject: Reply with quote

directory. whoo, 100%! so we must be right!
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
Q-collective
Veteran
Veteran


Joined: 22 Mar 2004
Posts: 1915
Location: You really wanna know?

PostPosted: Mon Dec 12, 2005 8:51 am    Post subject: Reply with quote

Sigh

This belongs in otw really...
_________________
Member of the Dutch section of the Committee for a Workers International
Back to top
View user's profile Send private message
gentleman
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2005
Posts: 138
Location: Germany, Paderborn

PostPosted: Mon Dec 12, 2005 10:50 am    Post subject: Reply with quote

That's so mad and I thought there would be a fast answer :D. Well though I indeed have files on my system with .d I just think the arguments for .d as a directory-indicator are better. You convinced me and I voted for directory :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum