Changeset 1680407 in bootscripts-standard


Ignore:
Timestamp:
Oct 24, 2007, 8:45:54 PM (16 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
6dee7fa
Parents:
1d02f01
Message:

Added Netboot Scripts

Files:
3 added
9 edited

Legend:

Unmodified
Added
Removed
  • Changelog

    r1d02f01 r1680407  
     1jim - October 24, 2007
     2        * Merged Netboot Scripts
     3
    14jim - October 23, 2007
    25        * Merged BLFS changes from SVN
  • Makefile

    r1d02f01 r1680407  
    194194install-service-pppoe: create-service-dir
    195195        install -m ${MODE} cblfs/sysconfig/network-devices/services/pppoe    ${EXTDIR}/sysconfig/network-devices/services
     196
     197install-netboot:
     198        install -d -m ${DIRMODE} ${EXTDIR}/rc.d
     199        install -m ${MODE} netboot/rc0.d       ${EXTDIR}/rc.d/
     200        install -m ${MODE} netboot/rc1.d       ${EXTDIR}/rc.d/
     201        install -m ${MODE} netboot/rcsysinit.d ${EXTDIR}/rc.d/
     202        ln -sf ../rc.d/rc0.d ${EXTDIR}/rc.d/rc6.d
     203        ln -sf ../rc.d/rc1.d ${EXTDIR}/rc.d/rc2.d
     204        ln -sf ../rc.d/rc1.d ${EXTDIR}/rc.d/rc3.d
     205        ln -sf ../rc.d/rc1.d ${EXTDIR}/rc.d/rc4.d
     206        ln -sf ../rc.d/rc1.d ${EXTDIR}/rc.d/rc5.d
    196207
    197208install-alsa: create-dirs
  • cblfs/init.d/dbus

    r1d02f01 r1680407  
    3434
    3535        status)
    36                 statusproc /usr/bin/dbus-daemon
     36                statusproc -p "$pidfile" /usr/bin/dbus-daemon
    3737                ;;
    3838
  • cblfs/init.d/gdm

    r1d02f01 r1680407  
    1111. $rc_functions
    1212
    13 export PATH=$PATH:/opt/gnome-2.18.3/bin:/opt/gnome-2.18.3/sbin
     13pidfile=/var/run/gdm.pid
     14
     15export PATH=$PATH:/opt/gnome/bin:/opt/gnome/sbin
    1416
    1517case "$1" in
    1618        start)
    1719                boot_mesg "Starting GDM..."
    18                 loadproc gdm
     20                loadproc -p $pidfile gdm
    1921                ;;
    2022
    2123        stop)
    2224                boot_mesg "Stopping GDM..."
    23                 if [ -f /var/run/gdm.pid ]; then
     25                if [ -f $pidfile ]; then
    2426                        loadproc gdm-stop
    2527                fi
  • cblfs/init.d/gpm

    r1d02f01 r1680407  
    1111. /etc/sysconfig/rc
    1212. $rc_functions
     13
     14pidfile=/var/run/gpm.pid
    1315
    1416if [ -f /etc/sysconfig/mouse ]
     
    2729        start)
    2830                boot_mesg "Starting gpm..."
    29                 loadproc /usr/sbin/gpm -m $MDEVICE -t $PROTOCOL $GPMOPTS
     31                loadproc -p $pidfile /usr/sbin/gpm -m $MDEVICE -t $PROTOCOL $GPMOPTS
    3032                ;;
    3133
    3234        stop)
    3335                boot_mesg "Stopping gpm..."
    34                 killproc /usr/sbin/gpm
     36                killproc -p $pidfile /usr/sbin/gpm
    3537                ;;
    3638
     
    4244
    4345        status)
    44                 statusproc /usr/sbin/gpm
     46                statusproc -p $pidfile /usr/sbin/gpm
    4547                ;;
    4648
  • cblfs/init.d/haldaemon

    r1d02f01 r1680407  
    1111. $rc_functions
    1212
     13pidfile=/var/run/hald/pid
     14
    1315case "$1" in
    1416        start)
    1517                boot_mesg "Starting the HAL Daemon..."
    16                 loadproc /usr/sbin/hald --use-syslog
     18                loadproc -p $pidfile /usr/sbin/hald --use-syslog
    1719                ;;
    1820
    1921        stop)
    2022                boot_mesg "Stopping the HAL Daemon..."
    21                 killproc /usr/sbin/hald
     23                killproc -p $pidfile /usr/sbin/hald
    2224                ;;
    2325
     
    2931
    3032        status)
    31                 statusproc /usr/sbin/hald
     33                statusproc -p $pidfile /usr/sbin/hald
    3234                ;;
    3335
  • cblfs/init.d/ntp

    r1d02f01 r1680407  
    88. $rc_functions
    99
     10pidfile=/var/run/ntpd.pid
     11
    1012case "$1" in
    1113        start)
    1214                boot_mesg "Starting ntpd..."
    1315                ntpd -gqx
    14                 loadproc /usr/sbin/ntpd
     16                loadproc -p $pidfile /usr/sbin/ntpd
    1517                ;;
    1618
    1719        stop)
    1820                boot_mesg "Stopping ntpd..."
    19                 killproc /usr/sbin/ntpd
     21                killproc -p $pidfile /usr/sbin/ntpd
    2022                ;;
    2123
     
    2729
    2830        status)
    29                 statusproc /usr/sbin/ntpd
     31                statusproc -p $pidfile /usr/sbin/ntpd
    3032                ;;
    3133
  • cblfs/init.d/samba

    r1d02f01 r1680407  
    1111. $rc_functions
    1212
     13smbdpid=/var/run/smbd.pid
     14nmbdpid=/var/run/nmbd.pid
     15
    1316case "$1" in
    1417        start)
    1518                boot_mesg "Starting nmbd..."
    16                 loadproc /usr/sbin/nmbd -D
     19                loadproc -p $nmbdpid /usr/sbin/nmbd -D
    1720
    1821                boot_mesg "Starting smbd..."
    19                 loadproc /usr/sbin/smbd -D
     22                loadproc -p $smbdpid /usr/sbin/smbd -D
    2023                ;;
    2124
    2225        stop)
    2326                boot_mesg "Stopping smbd..."
    24                 killproc /usr/sbin/smbd
     27                killproc -p $smbdpid /usr/sbin/smbd
    2528
    2629                boot_mesg "Stopping nmbd..."
    27                 killproc /usr/sbin/nmbd
     30                killproc -p $nmbdpid /usr/sbin/nmbd
    2831                ;;
    2932
    3033        reload)
    3134                boot_mesg "Reloading smbd..."
    32                 reloadproc /usr/sbin/smbd
     35                reloadproc -p $smbdpid /usr/sbin/smbd
    3336
    3437                boot_mesg "Reloading nmbd..."
    35                 reloadproc /usr/sbin/nmbd
     38                reloadproc -p $nmbdpid /usr/sbin/nmbd
    3639                ;;
    3740
     
    4346
    4447        status)
    45                 statusproc /usr/sbin/nmbd
    46                 statusproc /usr/sbin/smbd
     48                statusproc -p $nmbdpid /usr/sbin/nmbd
     49                statusproc -p $smbdpid /usr/sbin/smbd
    4750                ;;
    4851
  • cblfs/init.d/sshd

    r1d02f01 r1680407  
    1111. $rc_functions
    1212
     13pidfile=/var/run/sshd.pid
     14
    1315case "$1" in
    1416    start)
    1517        boot_mesg "Starting SSH Server..."
    1618        # Also prevent ssh from being killed by out of memory conditions
    17         loadproc /usr/sbin/sshd
     19        loadproc -p $pidfile /usr/sbin/sshd
    1820        sleep 1
    19         echo "-16" >/proc/`cat /var/run/sshd.pid`/oom_adj
     21        echo "-16" >/proc/`cat $pidfile`/oom_adj
    2022        ;;
    2123
    2224    stop)
    2325        boot_mesg "Stopping SSH Server..."
    24         killproc /usr/sbin/sshd
     26        killproc -p $pidfile /usr/sbin/sshd
    2527        ;;
    2628
    2729    reload)
    2830        boot_mesg "Reloading SSH Server..."
    29         reloadproc /usr/sbin/sshd
     31        reloadproc -p $pidfile /usr/sbin/sshd
    3032        ;;
    3133
     
    3739
    3840    status)
    39         statusproc /usr/sbin/sshd
     41        statusproc -p $pidfile /usr/sbin/sshd
    4042        ;;
    4143
Note: See TracChangeset for help on using the changeset viewer.