public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Shorewall init script
@ 2003-10-23 22:03 Norberto Bensa
  0 siblings, 0 replies; only message in thread
From: Norberto Bensa @ 2003-10-23 22:03 UTC (permalink / raw
  To: mholzer; +Cc: gentoo-dev

[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 636 bytes --]

Hello

on /etc/init.d/shorewall restart, the script complains with:

	* Please use 'svc_stop; svc_start' and not 'start; stop' to
	* restart the service in its custom 'restart()' function.
	* Run shorewall without arguments for more info.

But if you modify the shorewall init script to read:

	restart() {
	        ebegin "Restarting firewall"
	        # svc_stop; svc_start;
	        /sbin/shorewall restart 1>/dev/null
	        eend $?
	}

There's no more complains, and you'll preserve the script functionality ;-)

Regards,
Norberto

-- 
 18:59:53 up 7 days,  2:37,  1 user,  load average: 0.03, 0.01, 0.00

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-23 22:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-23 22:03 [gentoo-dev] Shorewall init script Norberto Bensa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox