|
|
|
|
|
|
| Author |
Message |
Jianan *nix forums beginner
Joined: 23 Feb 2005
Posts: 21
|
Posted: Sat Feb 05, 2005 6:20 am Post subject:
Xsession.d filename
|
|
|
Hi,
those files in /etc/X11/Xsession.d have a number in front of them e.g.
30xfree.., 45xfree..., 90xfree, etc. What is the significance of those
numbers?
Cheers
Jianan
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Steven C. Block *nix forums Guru Wannabe
Joined: 11 Mar 2005
Posts: 117
|
Posted: Sat Feb 05, 2005 7:00 am Post subject:
Re: Xsession.d filename
|
|
|
On Sat, Feb 05, 2005 at 02:55:39PM +0800, Jianan wrote:
| Quote: | Hi,
those files in /etc/X11/Xsession.d have a number in front of them e.g.
30xfree.., 45xfree..., 90xfree, etc. What is the significance of those
numbers?
|
Those numbers control the order in which the various scripts run. From
man 5 Xsession:
CUSTOMIZING THE STARTUP PROCEDURE
Of course, any of the existing files can be edited in place.
Because the order in which the various scripts in /etc/X11/Xsession.d
are executed is important, files to be added to this directory should
have a well-formed name. The following format is recommended:
* a two-digit number denoting sequence;
* the name of the package providing the script (or 'custom' for
locally-created scripts);
* an underscore;
* a description of the script's basic function, using only characters
allowed by run-parts.
--
Steve Block
http://ev-15.com/
http://www.steveblock.com/
scblock@ev-15.com
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Kevin Mark *nix forums Guru
Joined: 20 Feb 2005
Posts: 474
|
Posted: Sat Feb 05, 2005 7:20 am Post subject:
Re: Xsession.d filename
|
|
|
On Sat, Feb 05, 2005 at 02:55:39PM +0800, Jianan wrote:
| Quote: | Hi,
those files in /etc/X11/Xsession.d have a number in front of them e.g.
30xfree.., 45xfree..., 90xfree, etc. What is the significance of those
numbers?
|
Hi Jianan,
a common characteristic of ínitialization scripts (init.d and the like)
is the use of letter and number prefixes to dictate which files to run
and in what order. In /etc/rc2.d/, it contains:
-----------------------------
K20apache K20inetd K20kdm K20lpd
K20mono-xsp K20netatalk K20nethack-common K20rsync
K20samba K20slpd K20ssh K20usermin
K20webmin K20xdm K20xfs K20xprint
S10sysklogd S11klogd S14ppp S18portmap
S19spamassassin S20alsa S20autofs S20binfmt-support
S20cupsys S20dbus-1 S20exim4 S20fam
S20festival S20ifplugd S20iptables S20makedev
S20mdnsresponder S20mysql S20pppstatus S20privoxy
S20sslwrap S20sysstat S20timidity S20xdebconfigurator
S21aumix S21sendmail S23ntp-server S89atd
S89cron S99dddclient S99fetchmail S99rmnologin
S99stop-bootlogd S99wdm
-----------------------------
the S prefix means 'start this' on rc2.d (runlevel 2)
the K prefix means 'kill this' on rc2.d (runlevel 2)
the middle numbers indicate the order to run the scripts.
So, K20apache is run before K20inetd and so on.
Similarly, the X session directory (Xsession.d) contains scripts to run.
So, 30xfree is run before 45xfree and so forth.
-Kev
--
counter.li.org #238656 -- goto counter.li.org and be counted!
(__)
(oo)
/------\/
/ | ||
* /\---/\
~~ ~~
...."Have you mooed today?"... |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Fri Jan 09, 2009 12:07 pm | All times are GMT
|
|
Debt Consolidation | Bankruptcy | Buy Anything On eBay | Capital One Credit Cards | Bankruptcy
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|