initscrtips

Description:

inittab 파일과 /etc/init.d 스크립트

Changes on AnNyung:

  1. 1.
    USER_LANG 환경 변수가 설정 되면, LANG 환경 변수를 USER_LANG 값으로 변경
    • /etc/profile.d/lang.sh
  2. 2.
    changed sysctl value (/etc/sysctl.d/60-annyung.conf)
    1
    [[email protected] ~]$ cat /etc/sysctl.d/60-annyung.conf
    2
    kernel.sysrq = 0
    3
    kernel.msgmnb = 65536
    4
    kernel.msgmax = 65536
    5
    kernel.shmmax = 68719476736
    6
    kernel.shmall = 4294967296
    7
    kernel.sem = 250 32000 100 4096
    8
    vm.zone_reclaim_mode = 0
    9
    net.ipv4.ip_forward = 0
    10
    net.ipv4.conf.default.accept_source_route = 0
    11
    net.ipv4.conf.all.rp_filter = 1
    12
    net.ipv4.conf.default.rp_filter = 1
    13
    net.ipv4.conf.all.accept_redirects = 1
    14
    net.ipv4.conf.default.accept_redirects = 1
    15
    net.ipv4.conf.eth0.accept_redirects = 1
    16
    net.ipv4.tcp_fin_timeout = 20
    17
    net.ipv4.tcp_max_tw_buckets = 1440000
    18
    net.ipv4.tcp_tw_reuse = 1
    19
    net.ipv4.tcp_syncookies = 1
    20
    net.ipv4.tcp_max_syn_backlog = 8192
    21
    net.core.netdev_max_backlog = 8192
    22
    net.ipv4.tcp_rmem = 4096 25165824 25165824
    23
    net.ipv4.tcp_wmem = 4096 65536 25165824
    24
    net.core.rmem_default = 25165824
    25
    net.core.rmem_max = 25165824
    26
    net.core.wmem_default = 212992
    27
    net.core.wmem_max = 25165824
    28
    net.core.somaxconn = 20000
    29
    fs.aio-max-nr = 1048576
    Copied!
  3. 3.
    patch init wrapper script on /sbin/service
    • init script 검색 대상에 /sbin/init.d 추가

Sub packages:

  • debugmode - Scripts for running in debugging mode
Last modified 2yr ago