source: trunk/packages/sipb-xen-iptables/debian/sipb-xen-iptables.init @ 1254

Last change on this file since 1254 was 1254, checked in by price, 16 years ago

make reload work too in sipb-xen-iptables.init, just for fun

  • Property svn:executable set to *
File size: 688 bytes
Line 
1#! /bin/sh
2### BEGIN INIT INFO
3# Provides:          sipb-xen-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: sipb-xen iptables rules
9# Description:       
10### END INIT INFO
11
12NAME=sipb-xen-iptables
13DESC="Load the sipb-xen iptables rules"
14RULES=/usr/share/sipb-xen-iptables/iptables.rules
15GEN_FILES=$RULES
16PATH=/sbin:/usr/sbin:/bin:/usr/bin
17
18dpkg -s "$NAME" >/dev/null 2>/dev/null || exit 0
19
20. /lib/init/gen-files.sh
21. /lib/init/std-init.sh
22
23do_start()
24{
25        gen_files
26        /sbin/iptables-restore < $RULES
27}
28
29do_reload()
30{
31        do_start
32}
33
34do_stop()
35{
36        return 0
37}
38
39std_init "$1"
Note: See TracBrowser for help on using the repository browser.