#!/bin/sh
#
# $Id: service_active_SuSEfirewall2,v 1.2 2007/05/14 15:11:15 gleissner Exp $
#
#
# Project     :  SCPM (System Configuration Profile Management)
# Module      :  SCPM Utilities
# File        :  service_active_SuSEfirewall2
# Description :  Returns active stats of SuSEfirewall2 service
# Author      :  Joachim Gleissner <jg@suse.de>
#
# Copyright 2007 SUSE Linux Products GmbH
#
# Released under the terms of the GNU General Public License
# (see file COPYRIGHT in project root directory).
#

test -z "$1" && { echo "no init script given" >&2 ; exit 1 ; }

. /etc/sysconfig/scpm || exit 1
. $LIBDIR/resource_types/service/common || exit 1

SERVICE=SuSEfirewall2_setup
test -f $INITD/$SERVICE || { echo "no such file $INITD/$SERVICE" >&2 ; exit 2 ; }

LANG=C /sbin/chkconfig --list $SERVICE | awk '{ printf "%s\n%s\n%s\n%s\n%s\n%s\n",$2,$3,$4,$5,$6,$7 }'

exit 0
