aboutsummaryrefslogtreecommitdiff
path: root/net/shorewall-lite/files/shorewall-lite.init
blob: c3236e5bf569ac30b94d75c556711959968bf7d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh /etc/rc.common

USE_PROCD=1
START=50

load_params () {
    . /usr/share/shorewall/shorewallrc
}

start_service() {
    load_params
    
    ${SBINDIR}/shorewall -l $OPTIONS start $STARTOPTIONS
}

stop_service() {
    load_params
    
    ${SBINDIR}/shorewall -l $OPTIONS stop $STOPOPTIONS
}

restart_service() {
    load_params
    
    ${SBINDIR}/shorewall -l $OPTIONS restart $RESTARTOPTIONS
}

reload_service() {
    load_params
    
    ${SBINDIR}/shorewall -l $OPTIONS reload $RESTARTOPTIONS
}