Changeset 1680407 in bootscripts-standard for cblfs/init.d/sshd
- Timestamp:
- Oct 24, 2007, 8:45:54 PM (17 years ago)
- Branches:
- master
- Children:
- 6dee7fa
- Parents:
- 1d02f01
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.