#!/bin/bash case "$1" in start) echo "starting......" if [ -n "$PID" ]; then echo "myread is already running" exit else nohup your_cmd > message_queue_data.txt 2>&1 & fi ;; stop) echo "stopping......" killall myread ;; restart) $0 stop sleep 1 $0 start ;; *) echo "usage: $0 {start|stop|restart}" esac exit 0
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- ovod.cn 版权所有 湘ICP备2023023988号-4
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务