📄 sysstat.in
字号:
#!/bin/sh## Author: Klaus.Franken@fth2.siemens.de# Die Okt 12 10:05:41 EDT 1999## Modified by:# 1999/11/07 - Sebastien Godard <sebastien.godard@wanadoo.fr># Now use '-d' option when starting sar.# 2000/01/22 - Sebastien Godard <sebastien.godard@wanadoo.fr># Rewritten from scratch. Call sadc instead of sar.# 2004/10/10 - Sebastien Godard (sysstat <at> wanadoo.fr)# Now returns real exit code.## INIT_DIR/sysstat#RETVAL=0# Remove flag indicating that sadc was successfully launchedrm -f /tmp/sysstat.run# See how we were called.case "$1" in start) echo -n "Calling the system activity data collector (sadc): " SU SA_LIB_DIR/sadc -F -L - && touch /tmp/sysstat.run QUOTE# Try to guess if sadc was successfully launched. The difficulty# here is that the exit code is lost when the above command is# run via "su foo -c ..." if [ ! -f /tmp/sysstat.run ]; then RETVAL=1 else rm -f /tmp/sysstat.run fi echo ;; stop|status|restart|reload) ;; *) echo "Usage: sysstat {start|stop|status|restart|reload}" exit 1esacexit ${RETVAL}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -