rsync启动脚本
来源:互联网 发布:设定清奇的小说知乎 编辑:程序博客网 时间:2024/05/29 18:25
rsync启动脚本
#!/bin/bash#Author: seventeenWen#Date : 2017/08/05#chkconfig: 234 66 88#description : this scripts is rsync chkconfig config [ -f /etc/init.d/functions ]&& . /etc/init.d/functionsRETAVL=0prog="rsync"start() { if [ ! -f /var/run/rsyncd.pid ];then /usr/bin/rsync --daemon --config=/etc/rsyncd.conf fi RETAVL=$? if [ $RETAVL -eq 0 ];then action "starting $prog ...... " /bin/true else action "starting $prog ...... " /bin/false fi return $RETAVL}stop() { killproc /usr/sbin/rsync RETAVL=$0 sleep 1 if [ $RETAVL -eq 0 ];then action "stoping $prog ...... " /bin/true else action "stoping $prog ...... " /bin/false fi}restart() { $0 stop $0 start}case "$1" instart) start;;stop) stop;;restart|reload) restart;;*) echo "use (strat|stop|restart)" exit 1esac
阅读全文
0 0
- rsync启动脚本
- rsync启动脚本
- rsync启动脚本
- 脚本rsync
- 启动rsync服务的脚本并能用chkconfig管理
- rsync 脚本模板
- rsync配置脚本
- rsync同步脚本
- 如何启动rsync服务
- rsync启动异常
- Linux rsync同步文件脚本
- inotify + rsync 目录同步脚本
- CentOS一键配置rsync服务器脚本
- shell 脚本一例 curl rsync
- Shell脚本:使用rsync备份文件/目录
- CentOS一键配置rsync服务器脚本
- Shell脚本:使用rsync备份文件/目录
- rsync 实时同步脚本 (快速)
- TP5 页面跳转success 和 error
- ERROR 1093 (HY000): You can't specify target table 'SDS' for update in FROM clause
- notepad++ 文本操作
- 本科软件工程6学期所有书籍
- Xcode9 命令行打包变化
- rsync启动脚本
- android studio 过滤标签(多个) logcat
- Ubuntu 安装 JDK 7 / JDK8 (装)
- tomcat配置数据源
- tcp拥塞控制机制分析和理解
- android studio修改工程包名
- C语言itoa()函数和atoi()函数详解(整数转字符C实现)
- 身份证读卡插件以及方法以及api和dll以及ocx
- Codevs 2198 数字三角形WWW