mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
-Updated README.dtlogin -Update "# Provides:" in dtlogin LSB init script
This commit is contained in:
parent
40883b0165
commit
8cfdf21526
2 changed files with 16 additions and 12 deletions
|
@ -1,19 +1,23 @@
|
||||||
I have attached an LSB-compliant init script for dtlogin as an update to
|
Attached is an LSB-compliant init script for dtlogin. This allows dtlogin
|
||||||
the current wiki. All instructions currently on the wiki should be left.
|
to be controlled using either of the following syntax:
|
||||||
This only replaces the script contents. This allows dtlogin to be
|
|
||||||
controlled using either of the following syntax:
|
|
||||||
|
|
||||||
/etc/init.d/dtlogin start | stop | restart | status
|
/etc/init.d/dtlogin start | stop | restart | status
|
||||||
service dtlogin start | stop | restart | status
|
service dtlogin start | stop | restart | status
|
||||||
|
|
||||||
With the old script, dtlogin would be restarted on shutdown which resulted
|
This script also allows CDE to be properly handled on runlevel changes.
|
||||||
in the system hanging. This script allows CDE to be properly shutdown on
|
|
||||||
halt or restarts.
|
***SCRIPT INSTALL INSTRUCTIONS:***
|
||||||
|
1. Copy "dtlogin" script from this directory to /etc/init.d/
|
||||||
|
2. chmod 755 /etc/init.d/dtlogin
|
||||||
|
3. update-rc.d dtlogin defaults
|
||||||
|
4. Restart
|
||||||
|
|
||||||
|
dtlogin should now start on boot and correctly exit on shutdown/restart.
|
||||||
|
|
||||||
|
Tested on Debian Squeeze & Ubuntu 12.04, but should work on any LSB-compliant
|
||||||
|
distro.
|
||||||
|
|
||||||
|
|
||||||
If anyone can improve/change/enhance this script, please feel free. This is
|
|
||||||
just my attempt at getting a working version so my system doesn't hang.
|
|
||||||
Also, note that there is no #!/bin/sh at the start of the file. It is not
|
|
||||||
necessary and will cause the script not to work properly.
|
|
||||||
|
|
||||||
David McBrayer <d9j0m.dev@gmail.com>
|
David McBrayer <d9j0m.dev@gmail.com>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides:
|
# Provides: lsb-dtlogin
|
||||||
# Required-Start: $all
|
# Required-Start: $all
|
||||||
# Required-Stop:
|
# Required-Stop:
|
||||||
# Default-Start: 2 3 4 5
|
# Default-Start: 2 3 4 5
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue