I recommend adding this to the /etc/init.d/iptables script: save() { ebegin "Saving iptables state" /sbin/iptables-save > ${IPTABLES_SAVE} eend $? } and change the 2nd einfo line in the start() function to suggest they run this same script with the "save" parameter. This way, if you make future changes to your rules without iptables running, it's a bit easier to save the rules - and you'll never fat-finger the pathname to your ${IPTABLES_SAVE} file. Just a thought...
Sorry, not possible. The initscripts doesn't support extra commands to be called from the command prompt.
reopening...
*** Bug 13459 has been marked as a duplicate of this bug. ***
Martin, runscript.sh must be modified to accept other arguments than start stop etc.. I'm leavin the decision if and on how to handle this to you.
Aliz, it already have the feature. Checkout the latest bind rc-scipt (or named), and let on the $opts variable ...
Readded save() to iptables init script.