Last change
on this file since 1403 was
1304,
checked in by price, 16 years ago
|
ok, plain sh works now for invirt-web-iptables.init
|
-
Property svn:executable set to
*
|
File size:
703 bytes
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | ### BEGIN INIT INFO |
---|
3 | # Provides: invirt-web-iptables |
---|
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: Invirt web server iptables rules |
---|
9 | # Description: |
---|
10 | ### END INIT INFO |
---|
11 | |
---|
12 | NAME=invirt-web-iptables |
---|
13 | DESC="Invirt web server iptables rules" |
---|
14 | RULES=/usr/share/invirt-web-iptables/iptables.rules |
---|
15 | GEN_FILES=$RULES |
---|
16 | PATH=/sbin:/usr/sbin:/bin:/usr/bin |
---|
17 | |
---|
18 | dpkg -s "$NAME" >/dev/null 2>/dev/null || exit 0 |
---|
19 | |
---|
20 | . /lib/init/gen-files.sh |
---|
21 | . /lib/init/std-init.sh |
---|
22 | |
---|
23 | do_start() |
---|
24 | { |
---|
25 | gen_files |
---|
26 | /sbin/iptables-restore < $RULES |
---|
27 | } |
---|
28 | |
---|
29 | do_reload() |
---|
30 | { |
---|
31 | do_start |
---|
32 | } |
---|
33 | |
---|
34 | do_stop() |
---|
35 | { |
---|
36 | return 0 |
---|
37 | } |
---|
38 | |
---|
39 | std_init "$1" |
---|
Note: See
TracBrowser
for help on using the repository browser.