Gentoo Archives: gentoo-dev

From: Norberto Bensa <nbensa@×××.net>
To: mholzer@g.o
Cc: gentoo-dev@g.o
Subject: [gentoo-dev] Shorewall init script
Date: Thu, 23 Oct 2003 22:04:20
Message-Id: 200310231903.25826.nbensa@gmx.net
1 Hello
2
3 on /etc/init.d/shorewall restart, the script complains with:
4
5 * Please use 'svc_stop; svc_start' and not 'start; stop' to
6 * restart the service in its custom 'restart()' function.
7 * Run shorewall without arguments for more info.
8
9 But if you modify the shorewall init script to read:
10
11 restart() {
12 ebegin "Restarting firewall"
13 # svc_stop; svc_start;
14 /sbin/shorewall restart 1>/dev/null
15 eend $?
16 }
17
18 There's no more complains, and you'll preserve the script functionality ;-)
19
20 Regards,
21 Norberto
22
23 --
24 18:59:53 up 7 days, 2:37, 1 user, load average: 0.03, 0.01, 0.00