- status)
- echo -n "Checking for service smartd "
- ## Check status with checkproc(8), if process is running
- ## checkproc will return with exit status 0.
-
- # Status has a slightly different for the status command:
- # 0 - service running
- # 1 - service dead, but /var/run/ pid file exists
- # 2 - service dead, but /var/lock/ lock file exists
- # 3 - service not running
-
- # NOTE: checkproc returns LSB compliant status values.
- checkproc $SMARTD_BIN
- rc_status -v
- ;;
- probe)
+ report)
+ ## Checking SMART devices now (smartd specific function)
+ echo -n "Checking SMART devices now "
+ /sbin/killproc -USR1 $SMARTD_BIN
+ rc_status -v
+ ;;
+ status)
+ echo -n "Checking for service smartd "
+ ## Check status with checkproc(8), if process is running
+ ## checkproc will return with exit status 0.
+
+ # Return value is slightly different for the status command:
+ # 0 - service up and running
+ # 1 - service dead, but /var/run/ pid file exists
+ # 2 - service dead, but /var/lock/ lock file exists
+ # 3 - service not running (unused)
+ # 4 - service status unknown :-(
+ # 5--199 reserved (5--99 LSB, 100--149 distro, 150--199 appl.)
+
+ # NOTE: checkproc returns LSB compliant status values.
+ /sbin/checkproc $SMARTD_BIN
+ rc_status -v
+ ;;
+ probe)