- Timestamp:
- Oct 24, 2007, 8:45:54 PM (17 years ago)
- Branches:
- master
- Children:
- 6dee7fa
- Parents:
- 1d02f01
- Location:
- cblfs/init.d
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
cblfs/init.d/dbus
r1d02f01 r1680407 34 34 35 35 status) 36 statusproc /usr/bin/dbus-daemon36 statusproc -p "$pidfile" /usr/bin/dbus-daemon 37 37 ;; 38 38 -
cblfs/init.d/gdm
r1d02f01 r1680407 11 11 . $rc_functions 12 12 13 export PATH=$PATH:/opt/gnome-2.18.3/bin:/opt/gnome-2.18.3/sbin 13 pidfile=/var/run/gdm.pid 14 15 export PATH=$PATH:/opt/gnome/bin:/opt/gnome/sbin 14 16 15 17 case "$1" in 16 18 start) 17 19 boot_mesg "Starting GDM..." 18 loadproc gdm20 loadproc -p $pidfile gdm 19 21 ;; 20 22 21 23 stop) 22 24 boot_mesg "Stopping GDM..." 23 if [ -f /var/run/gdm.pid]; then25 if [ -f $pidfile ]; then 24 26 loadproc gdm-stop 25 27 fi -
cblfs/init.d/gpm
r1d02f01 r1680407 11 11 . /etc/sysconfig/rc 12 12 . $rc_functions 13 14 pidfile=/var/run/gpm.pid 13 15 14 16 if [ -f /etc/sysconfig/mouse ] … … 27 29 start) 28 30 boot_mesg "Starting gpm..." 29 loadproc /usr/sbin/gpm -m $MDEVICE -t $PROTOCOL $GPMOPTS31 loadproc -p $pidfile /usr/sbin/gpm -m $MDEVICE -t $PROTOCOL $GPMOPTS 30 32 ;; 31 33 32 34 stop) 33 35 boot_mesg "Stopping gpm..." 34 killproc /usr/sbin/gpm36 killproc -p $pidfile /usr/sbin/gpm 35 37 ;; 36 38 … … 42 44 43 45 status) 44 statusproc /usr/sbin/gpm46 statusproc -p $pidfile /usr/sbin/gpm 45 47 ;; 46 48 -
cblfs/init.d/haldaemon
r1d02f01 r1680407 11 11 . $rc_functions 12 12 13 pidfile=/var/run/hald/pid 14 13 15 case "$1" in 14 16 start) 15 17 boot_mesg "Starting the HAL Daemon..." 16 loadproc /usr/sbin/hald --use-syslog18 loadproc -p $pidfile /usr/sbin/hald --use-syslog 17 19 ;; 18 20 19 21 stop) 20 22 boot_mesg "Stopping the HAL Daemon..." 21 killproc /usr/sbin/hald23 killproc -p $pidfile /usr/sbin/hald 22 24 ;; 23 25 … … 29 31 30 32 status) 31 statusproc /usr/sbin/hald33 statusproc -p $pidfile /usr/sbin/hald 32 34 ;; 33 35 -
cblfs/init.d/ntp
r1d02f01 r1680407 8 8 . $rc_functions 9 9 10 pidfile=/var/run/ntpd.pid 11 10 12 case "$1" in 11 13 start) 12 14 boot_mesg "Starting ntpd..." 13 15 ntpd -gqx 14 loadproc /usr/sbin/ntpd16 loadproc -p $pidfile /usr/sbin/ntpd 15 17 ;; 16 18 17 19 stop) 18 20 boot_mesg "Stopping ntpd..." 19 killproc /usr/sbin/ntpd21 killproc -p $pidfile /usr/sbin/ntpd 20 22 ;; 21 23 … … 27 29 28 30 status) 29 statusproc /usr/sbin/ntpd31 statusproc -p $pidfile /usr/sbin/ntpd 30 32 ;; 31 33 -
cblfs/init.d/samba
r1d02f01 r1680407 11 11 . $rc_functions 12 12 13 smbdpid=/var/run/smbd.pid 14 nmbdpid=/var/run/nmbd.pid 15 13 16 case "$1" in 14 17 start) 15 18 boot_mesg "Starting nmbd..." 16 loadproc /usr/sbin/nmbd -D19 loadproc -p $nmbdpid /usr/sbin/nmbd -D 17 20 18 21 boot_mesg "Starting smbd..." 19 loadproc /usr/sbin/smbd -D22 loadproc -p $smbdpid /usr/sbin/smbd -D 20 23 ;; 21 24 22 25 stop) 23 26 boot_mesg "Stopping smbd..." 24 killproc /usr/sbin/smbd27 killproc -p $smbdpid /usr/sbin/smbd 25 28 26 29 boot_mesg "Stopping nmbd..." 27 killproc /usr/sbin/nmbd30 killproc -p $nmbdpid /usr/sbin/nmbd 28 31 ;; 29 32 30 33 reload) 31 34 boot_mesg "Reloading smbd..." 32 reloadproc /usr/sbin/smbd35 reloadproc -p $smbdpid /usr/sbin/smbd 33 36 34 37 boot_mesg "Reloading nmbd..." 35 reloadproc /usr/sbin/nmbd38 reloadproc -p $nmbdpid /usr/sbin/nmbd 36 39 ;; 37 40 … … 43 46 44 47 status) 45 statusproc /usr/sbin/nmbd46 statusproc /usr/sbin/smbd48 statusproc -p $nmbdpid /usr/sbin/nmbd 49 statusproc -p $smbdpid /usr/sbin/smbd 47 50 ;; 48 51 -
cblfs/init.d/sshd
r1d02f01 r1680407 11 11 . $rc_functions 12 12 13 pidfile=/var/run/sshd.pid 14 13 15 case "$1" in 14 16 start) 15 17 boot_mesg "Starting SSH Server..." 16 18 # Also prevent ssh from being killed by out of memory conditions 17 loadproc /usr/sbin/sshd19 loadproc -p $pidfile /usr/sbin/sshd 18 20 sleep 1 19 echo "-16" >/proc/`cat /var/run/sshd.pid`/oom_adj21 echo "-16" >/proc/`cat $pidfile`/oom_adj 20 22 ;; 21 23 22 24 stop) 23 25 boot_mesg "Stopping SSH Server..." 24 killproc /usr/sbin/sshd26 killproc -p $pidfile /usr/sbin/sshd 25 27 ;; 26 28 27 29 reload) 28 30 boot_mesg "Reloading SSH Server..." 29 reloadproc /usr/sbin/sshd31 reloadproc -p $pidfile /usr/sbin/sshd 30 32 ;; 31 33 … … 37 39 38 40 status) 39 statusproc /usr/sbin/sshd41 statusproc -p $pidfile /usr/sbin/sshd 40 42 ;; 41 43
Note:
See TracChangeset
for help on using the changeset viewer.