Changes between Version 3 and Version 4 of jazz/Hadoop_deb


Ignore:
Timestamp:
Mar 20, 2009, 1:36:58 PM (15 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/Hadoop_deb

    v3 v4  
    3535}
    3636}}}
     37   * 設定預設 run-level 還有啟動服務的寫法
     38{{{
     39setup_init() {
     40        if [ -x /etc/init.d/ssh ]; then
     41                update-rc.d ssh start 16 2 3 4 5 . stop 84 1 . >/dev/null
     42                if [ -x /usr/sbin/invoke-rc.d ]; then
     43                        invoke-rc.d ssh restart
     44                else
     45                        /etc/init.d/ssh restart
     46                fi
     47        fi
     48}
     49}}}