文件操作 - lsb_start_daemon
返回文件管理
返回主菜单
删除本文件
文件: /root/sh/redhat-lsb/lsb_start_daemon
编辑文件内容
#!/bin/bash . /etc/init.d/functions nice= force= pidfile= user= check= RETVAL= while [ "$1" != "${1##[-+]}" ]; do case $1 in -f) force="--force" shift ;; -n) nice=$2 shift 2 ;; -p) pidfile="--pidfile $2" shift 2 ;; -u) user="--user $2" shift 2 ;; -c) check="--check $2" shift 2 ;; *) echo "Unknown Option $1" echo "Options are:" echo "-f" echo "-p {pidfile}" echo "-n [+/-nicelevel]" echo "-u {user}" echo "-c {base}" exit 1;; esac done LSB=LSB-1.1 daemon ${force:-} ${nice:-} ${pidfile:-} ${user:-} ${check:-} $* exit $?
修改文件时间
将文件时间修改为当前时间的前一年
删除文件