#!/bin/sh
#chkconfig: 2345 80 05
#description:zwy
#processname:zwy
start(){
echo "zwy service is starting"
echo "start">>/root/zwy.txt
}
stop(){
echo "zwy service is stop"
echo "stop">>/root/zwy.txt
}
case $1 in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"usage:$0 {start|stop|restart}"
exit2
esac
**************************8
chkconfig --add zwy
时间: 2024-10-15 16:49:11