#!/bin/sh
#
# $Id: service_start,v 1.3 2003/05/08 16:10:12 jg Exp $
#
#
# Project     :  SCPM (System Configuration Profile Management)
# Module      :  SCPM Utilities
# File        :  service_start
# Description :  Starts a service using the given init script
# Author      :  Joachim Gleissner <jg@suse.de>
#
# Copyright 2001 SuSE 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/scpm.conf || exit 1
. $LIBDIR/resource_types/service/common || exit 1

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

PATH=/sbin:$PATH
exec $INITD/$1 start


exit 0
    
