首页 > 系统服务 > 详细

linux自定义启动脚本,服务脚本

时间:2014-11-19 11:30:50      阅读:254      评论:0      收藏:0      [点我收藏+]

#!/bin/bash



case "$1" in

start)

echo "Starting yum_rsync daemon..."

/data/script/yum_rsync.sh

;;

stop)

echo "Stopping yum_rsync daemon..."

killall yum_rsync.sh

killall rsync

;;


restart)

echo "Restarting yum_rsync daemon..."

$0 stop

$0 start

;;


status)

ps -ef | grep rsync

;;


*)

echo "Usage: $0 {start|stop|restart|status}"

exit 1

;;

esac


本文出自 “XFICC” 博客,请务必保留此出处http://xficc.blog.51cto.com/1189288/1579364

linux自定义启动脚本,服务脚本

原文:http://xficc.blog.51cto.com/1189288/1579364

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!