Last change
on this file since 3050 was
2936,
checked in by broder, 15 years ago
|
Actually kill any references to PARENTPACKAGE in invirt-xen-config.
|
-
Property svn:executable set to
*
|
File size:
895 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | ### BEGIN INIT INFO |
---|
3 | # Provides: invirt-xen-config |
---|
4 | # Required-Start: $local_fs $remote_fs |
---|
5 | # Required-Stop: $local_fs $remote_fs |
---|
6 | # Default-Start: 2 3 4 5 |
---|
7 | # Default-Stop: 0 1 6 |
---|
8 | # Short-Description: Startup script for the Invirt Xen host |
---|
9 | # Description: |
---|
10 | ### END INIT INFO |
---|
11 | |
---|
12 | PACKAGE=invirt-xen-config |
---|
13 | NAME="$PACKAGE" |
---|
14 | DESC="Invirt Xen host" |
---|
15 | GEN_FILES=(/etc/xen/xend-config.sxp.invirt) |
---|
16 | |
---|
17 | dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0 |
---|
18 | |
---|
19 | . /lib/init/gen-files.sh |
---|
20 | . /lib/init/std-init.sh |
---|
21 | |
---|
22 | do_startup() { |
---|
23 | gen_files |
---|
24 | |
---|
25 | echo 1 >/proc/sys/net/ipv4/ip_forward |
---|
26 | for i in all default; do |
---|
27 | echo 1 >/proc/sys/net/ipv4/conf/$i/rp_filter |
---|
28 | echo 1 >/proc/sys/net/ipv4/conf/$i/proxy_arp |
---|
29 | done |
---|
30 | } |
---|
31 | |
---|
32 | do_start() { |
---|
33 | do_startup "start" |
---|
34 | xm sched-credit -d 0 -w 512 |
---|
35 | } |
---|
36 | |
---|
37 | do_reload() { |
---|
38 | do_startup "reload" |
---|
39 | } |
---|
40 | |
---|
41 | do_stop() { |
---|
42 | : |
---|
43 | } |
---|
44 | |
---|
45 | std_init "$1" |
---|
Note: See
TracBrowser
for help on using the repository browser.