Commit 95320b47 authored by 白秀江's avatar 白秀江

更新init-mount-service.sh

parent 04507d44
#!/bin/bash
#chkconfig:2345 80 05 --指定在哪几个级别执行,0一般指关机,6指的是重启,其他为正常启动。80为启动的优先级,05为关闭的优先级别
#description:simple example service
RETVAL=0
start(){ #启动服务的入口函数
echo "mount service is started..."
mount /dev/vdb1 /data
}
stop(){ #关闭服务的入口函数
echo "mount service is stoped..."
}
#使用case选择
case $1 in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo "error choice ! please input start or stop";;
esac
exit $RETVA
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment