Changeset 1680407 in bootscripts-standard for cblfs/init.d/sshd


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

Added Netboot Scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.