niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » Distributions » Debian
Xsession.d filename
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Jianan
*nix forums beginner


Joined: 23 Feb 2005
Posts: 21

PostPosted: Sat Feb 05, 2005 6:20 am    Post subject: Xsession.d filename Reply with 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?

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

PostPosted: Sat Feb 05, 2005 7:00 am    Post subject: Re: Xsession.d filename Reply with quote

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

PostPosted: Sat Feb 05, 2005 7:20 am    Post subject: Re: Xsession.d filename Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 12:07 pm | All times are GMT
navigation Forum index » *nix » Linux » Distributions » Debian
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts ConfigParser: what read('non-existent-filename') returns ... Danil Dotsenko python 4 Thu Jul 20, 2006 5:50 pm
No new posts ksh tab filename completion Sashi shell 2 Wed Jul 19, 2006 9:24 pm
No new posts SFTP Filename Question Ken Bridges TCP-IP multinet 4 Tue Jul 18, 2006 8:26 pm
No new posts ~/.xsession crashes xserver Haines Brown Debian 1 Tue Jul 11, 2006 6:20 pm
No new posts Can Log filename include database name? Francisco Reyes PostgreSQL 2 Fri Jul 07, 2006 3:15 pm

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
[ Time: 0.1312s ][ Queries: 16 (0.0515s) ][ GZIP on - Debug on ]