head 1.2; access; symbols; locks ahuxley:1.2; strict; comment @# @; 1.2 date 99.11.23.07.54.07; author ahuxley; state Exp; branches; next 1.1; 1.1 date 99.11.23.07.53.18; author ahuxley; state Exp; branches; next ; desc @GENERIC INIT.D STARTUP SCRIPT @ 1.2 log @fixed RCS id @ text @#!/bin/sh # $Header$ PATH=/bin:/usr/bin:/sbin:/usr/sbin PROGNAME=`basename $0` SERVICE_DESC="XYZ daemon" SERVICE_PROG=/usr/sbin/xyzd UNAMES=${UNAMES:-`uname -s`} case $1 in start) [ $UNAMES != HP-UX ] && echo "Starting $SERVICE_DESC ... \\c" [ -x $SERVICE_PROG ] && { $SERVICE_PROG; RC=$?; } ;; stop) [ $UNAMES != HP-UX ] && echo "Stopping $SERVICE_DESC ... \\c" # this script just lets it get killed ;; start_msg) echo "Start $SERVICE_DESC" ;; stop_msg) echo "Stop $SERVICE_DESC" ;; *) echo "Usage: `basename $0` { start | stop | start_msg | stop_msg }" ;; esac return ${RC:-0} @ 1.1 log @Initial revision @ text @d2 1 a2 1 # $header$ @