]>
git.proxmox.com Git - mirror_smartmontools-debian.git/blob - os_darwin/SMART.in
eb6137d90d6aca5fcb4a2caf79ce728f3f8f16eb
3 # Darwin init file for smartd
5 # Home page of code is: http://smartmontools.sourceforge.net
7 # Copyright (C) 2004-8 Geoffrey Keating <geoffk@geoffk.org>
9 # This program is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by the Free
11 # Software Foundation; either version 2, or (at your option) any later
14 # You should have received a copy of the GNU General Public License (for
15 # example COPYING); if not, write to the Free Software Foundation, Inc., 675
16 # Mass Ave, Cambridge, MA 02139, USA.
18 # $Id: SMART.in,v 1.5 2008/03/04 22:09:47 ballen4705 Exp $
28 if [ "${SMARTd:=-YES-}" = "-YES-" ] &&
29 ! GetPID smartd
> /dev
/null
; then
31 ConsoleMessage
"Starting SMART disk monitoring"
33 /usr
/sbin
/smartd
-p /var
/run
/smartd.pid
39 if pid
=$
(GetPID smartd
); then
40 ConsoleMessage
"Stopping SMART disk monitoring"
43 echo "smartd is not running."
49 if pid
=$
(GetPID smartd
); then