mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
68df55029e
Several changes in Makefile. Migrate init script to procd. Signed-off-by: W. van den Akker <wvdakker@wilsoft.nl>
33 lines
513 B
Bash
33 lines
513 B
Bash
#!/bin/sh /etc/rc.common
|
|
|
|
USE_PROCD=1
|
|
START=50
|
|
|
|
load_params () {
|
|
. /usr/share/shorewall/shorewallrc
|
|
}
|
|
|
|
start_service() {
|
|
load_params
|
|
|
|
${SBINDIR}/shorewall -6l $OPTIONS start $STARTOPTIONS
|
|
}
|
|
|
|
stop_service() {
|
|
load_params
|
|
|
|
${SBINDIR}/shorewall -6l $OPTIONS stop $STOPOPTIONS
|
|
}
|
|
|
|
restart_service() {
|
|
load_params
|
|
|
|
${SBINDIR}/shorewall -6l $OPTIONS restart $RESTARTOPTIONS
|
|
}
|
|
|
|
reload_service() {
|
|
load_params
|
|
|
|
${SBINDIR}/shorewall -6l $OPTIONS reload $RESTARTOPTIONS
|
|
}
|