Accepting request 113498 from home:vuntz:branches:X11:XOrg
Split xdm out of xorg-x11; no change to the content OBS-URL: https://build.opensuse.org/request/show/113498 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xdm?expand=0&rev=1
This commit is contained in:
36
HOWTO.xdm
Normal file
36
HOWTO.xdm
Normal file
@@ -0,0 +1,36 @@
|
||||
Display Manager Scriptlets HOWTO
|
||||
================================
|
||||
|
||||
To keep display manager specific code out of the generic
|
||||
start script (/etc/init.d/xdm) as much as possible display
|
||||
managers should provide a script file that provides anything
|
||||
specific to this dm.
|
||||
|
||||
At minimum the script file needs to provide:
|
||||
here <DM> denotes the name of the file. This should
|
||||
be the same as the pid file generated by the display
|
||||
manager - without the .pid extent.
|
||||
|
||||
# this function matches the command line argument. If it
|
||||
finds a match it initializes any dm specific variables
|
||||
and returns 0 (success) otherwise it returns 1 (fail).
|
||||
At minimum it needs to set the full path the the display
|
||||
manager binary.
|
||||
It may set STARTPROC to a function that gets run prior to
|
||||
starting a dm, RELOADPROC to a function that's run to reload
|
||||
the DM configuration, PROBEPROC to a function that's run
|
||||
when the DM status is probed.
|
||||
Any those functions should return 0 on success or any other
|
||||
value on failure.
|
||||
Additionally it may initialize any other variables needed
|
||||
by the DM.
|
||||
|
||||
<DM>_vars() {
|
||||
case $1 in
|
||||
<thisdm>)
|
||||
DISPLAYMANAGER=/usr/bin/<thisdm>
|
||||
STARTPROC=<DM>_start # optional
|
||||
RELOADPROC=<DM>_reload # optional
|
||||
PROBEPROC=<DM>_probe # optional
|
||||
....
|
||||
}
|
Reference in New Issue
Block a user