Annotation of /trunk/initscripts/sysvinit/rc/sysctl
Parent Directory | Revision Log
Revision 781 -
(hide annotations)
(download)
Mon Dec 22 22:01:15 2008 UTC (15 years, 9 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/sysctl
File size: 588 byte(s)
Mon Dec 22 22:01:15 2008 UTC (15 years, 9 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/sysctl
File size: 588 byte(s)
-use /etc/conf.d/rc instead of /etc/sysconfig/rc
1 | niro | 367 | #!/bin/bash |
2 | niro | 781 | # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/sysctl,v 1.2 2008-12-22 22:01:15 niro Exp $ |
3 | niro | 367 | |
4 | #%rlevels: 7:s | ||
5 | #%start: 90 | ||
6 | #%stop: | ||
7 | |||
8 | #deps | ||
9 | #%needs: | ||
10 | #%before: | ||
11 | #%after: | ||
12 | |||
13 | niro | 781 | source /etc/conf.d/rc |
14 | source ${rc_functions} | ||
15 | niro | 367 | |
16 | case "$1" in | ||
17 | start) | ||
18 | if [ -f /etc/sysctl.conf ] | ||
19 | then | ||
20 | echo -e ${COLOREDSTAR}"Setting kernel runtime parameters ..." | ||
21 | sysctl -q -p | ||
22 | evaluate_retval | ||
23 | fi | ||
24 | |||
25 | update_svcstatus $1 | ||
26 | splash svc_started "$(basename $0)" 0 | ||
27 | ;; | ||
28 | |||
29 | status) | ||
30 | sysctl -a | ||
31 | ;; | ||
32 | |||
33 | *) | ||
34 | echo "Usage: $0 {start|status}" | ||
35 | exit 1 | ||
36 | ;; | ||
37 | esac |