#!/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
原文地址:http://xficc.blog.51cto.com/1189288/1579364