smartd.initd
来自「Linux下」· INITD 代码 · 共 38 行
INITD
38 行
#!/bin/bash# ucsc-smartsuite init file for snmpd## description: Self Monitoring and Reporting Technology (SMART) Daemon## processname: smartd # source function library. /etc/rc.d/init.d/functionscase "$1" in start) echo -n "Starting smartd: " daemon /usr/local/sbin/smartd touch /var/lock/subsys/smartd echo ;; stop) echo -n "Shutting down snmpd: " killproc smartd rm -f /var/lock/subsys/smartd echo ;; restart) $0 stop $0 start ;; status) status smartd ;; *) echo "Usage: smartd {start|stop|restart|status}" exit 1esacexit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?