ufw: use ufw-init for start,stop,restart of service
This commit is contained in:
parent
0cb8647ab0
commit
498c6309c1
|
@ -6,12 +6,18 @@ depend() {
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting ufw"
|
ebegin "Starting ufw"
|
||||||
ufw enable
|
/lib/ufw/ufw-init start
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
ebegin "Stopping ufw"
|
ebegin "Stopping ufw"
|
||||||
ufw disable
|
/lib/ufw/ufw-init stop
|
||||||
|
eend $?
|
||||||
|
}
|
||||||
|
|
||||||
|
restart() {
|
||||||
|
ebegin "Restarting ufw"
|
||||||
|
/lib/ufw/ufw-init retart
|
||||||
eend $?
|
eend $?
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'ufw'
|
# Template file for 'ufw'
|
||||||
pkgname=ufw
|
pkgname=ufw
|
||||||
version=0.30.1
|
version=0.30.1
|
||||||
revision=1
|
revision=2
|
||||||
distfiles="http://launchpad.net/ufw/0.30/$version/+download/$pkgname-$version.tar.gz"
|
distfiles="http://launchpad.net/ufw/0.30/$version/+download/$pkgname-$version.tar.gz"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
short_desc="Uncomplicated Firewall"
|
short_desc="Uncomplicated Firewall"
|
||||||
|
|
Loading…
Reference in New Issue