#!/bin/sh # # ChkCfg Collects and records data in a format compatible with CheckCfg # # chkconfig: - 90 10 # description: multi-line \ # description \ # of the service. # processname: none # config: /etc/sysconfig/sklad-chkcfg # pidfile: none # Do not load RH compatibility interface. WITHOUT_RC_COMPAT=1 # Source function library. . /etc/init.d/functions RETVAL=0 start() { echo "Gathering data about hardware..." /usr/sbin/sklad-chkcfg RETVAL=$? return $RETVAL } stop() { return 0 } # See how we were called. case "$1" in start) start ;; stop) stop ;; *) msg_usage "${0##*/} start" RETVAL=1 esac exit $RETVAL