Select Git revision
test_property.py
smartd.initd 1.44 KiB
#!/bin/bash
# chkconfig: 35 40 40
# smartmontools init file for smartd
#
# description: Self Monitoring and Reporting Technology (SMART) Daemon
#
# processname: smartd
#
# $Id: smartd.initd,v 1.6 2003/05/09 19:20:23 ballen4705 Exp $
#
# Copyright (C) 2002-3 Bruce Allen <smartmontools-support@lists.sourceforge.net>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version.
#
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
#
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.
#
# source function library
. /etc/rc.d/init.d/functions
case "$1" in
start)
echo -n "Starting smartd: "
daemon /usr/sbin/smartd
touch /var/lock/subsys/smartd
echo
;;
stop)
echo -n "Shutting down smartd: "
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 1
esac
exit 0