You are not logged in.

#1 2005-08-14 16:47:31

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

What is this rc(x).d crap?!

In /etc/rc.d, I have the folders rc2.d, rc3.d, and rc5.d, all of which contain symbolic links labeled K21xprint and S21xprint - owned by XOrg according to pacman. Is this stuff necessaru? And is it just me, or is the XOrg PKGBUILD designed to remove these folders, among other things?

Offline

#2 2005-08-14 16:55:49

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: What is this rc(x).d crap?!

m... I don't have those folders, and I use xorg.


And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.

Offline

#3 2005-08-14 16:57:23

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,432
Website

Re: What is this rc(x).d crap?!

kakabaratruskia wrote:

m... I don't have those folders, and I use xorg.

likewise

Offline

#4 2005-08-14 17:10:23

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,681

Re: What is this rc(x).d crap?!

Don't have them here, either.


oz

Offline

#5 2005-08-14 17:37:53

shadowhunter
Member
Registered: 2003-10-08
Posts: 26

Re: What is this rc(x).d crap?!

You know... sometimes reformatting does the job, even in linux.

I admit, it is not the way it should be done, but it gives me a complete new, clean system... for some reason I don't trust the cleaning of pacman since some programs create their conf files run time.

Geert.

Offline

#6 2005-08-14 19:08:38

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: What is this rc(x).d crap?!

Yeah, sometimes I have to remove stuff from /etc that wasn't removed by pacman (even with -Rscn). Also, removing XOrg will usually orphan a lot of files - libICE.so.6 and the entirety of /usr/X11R6/lib/modules being particularly notable.

Offline

#7 2005-08-15 22:41:59

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: What is this rc(x).d crap?!

Are you running X.org 6.9 as some people are after that thread? That could be why...

Offline

#8 2005-08-16 23:17:50

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: What is this rc(x).d crap?!

Nope. I did have snapshots installed over XOrg previously, though, that could be the source.

(The symlinks are owned by the xorg package though. :? )

Offline

#9 2005-08-17 10:54:41

Kern
Member
From: UK
Registered: 2005-02-09
Posts: 464

Re: What is this rc(x).d crap?!

doesn't the number denote which runlevel the main /etc/rc.d/rc script is aimed at ?

so instructions for runlevel 3 are in the folder rc3.d etc - unless its causing probs, maybe best to leave them in place.

Offline

#10 2005-08-17 19:08:27

rhfrommn
Member
From: Minnesota
Registered: 2005-01-13
Posts: 99

Re: What is this rc(x).d crap?!

Yes, the rc?.d directories as you describe are the runlevel control scripts.  This method is how it is done in Solaris, among many others.  The scripts that begin with a K are run with a "stop" flag when entering that runlevel, and the ones starting S are run with a "start". 

However, since arch uses one overall rc.conf file instead I'm not sure why you'd need those individual runlevel directories in arch?

Offline

#11 2005-08-17 19:26:36

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: What is this rc(x).d crap?!

you dont need them. if you installed from source, likely they are artificts of the 'make install'. A pkgbuild for such a peice of software would require customization, most likely.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#12 2005-08-17 19:33:42

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,838

Re: What is this rc(x).d crap?!

xorg PKGBUILD wrote:

  # exorcise the SysV demons and set up environment stuff
  rm -rf $startdir/pkg/etc/rc.d/rc?.d

In other words, these directories are removed from the standard Arch xorg build during packaging - this kind of behaviour is necessary when an app automatically creates a SysV-style init setup (a la Solaris, Debian, etc) instead of the BSD-style one that we use around here.

Whatever the reason for them remaining on your system, they can be removed safely - Arch doesn't touch them.

Offline

Board footer

Powered by FluxBB