diff options
Diffstat (limited to 'testing/smartmontools/smartd.initd')
-rw-r--r-- | testing/smartmontools/smartd.initd | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/testing/smartmontools/smartd.initd b/testing/smartmontools/smartd.initd deleted file mode 100644 index 560e17d646..0000000000 --- a/testing/smartmontools/smartd.initd +++ /dev/null @@ -1,43 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/files/smartd.rc,v 1.8 2009/10/11 00:43:58 vapier Exp $ - -depend() { - need localmount - after bootmisc -} - -opts="${opts} reload" - -checkconfig() { - if [ ! -f "/etc/smartd.conf" ] ; then - eerror "You should setup your /etc/smartd.conf file!" - eerror "See the smartd.conf(5) manpage." - return 1 - fi - return 0 -} - -start() { - checkconfig || return 1 - - ebegin "Starting S.M.A.R.T. monitoring daemon" - start-stop-daemon --start --exec /usr/sbin/smartd \ - --pidfile /var/run/smartd.pid \ - -- -p /var/run/smartd.pid ${SMARTD_OPTS} - eend $? -} - -stop() { - ebegin "Stopping S.M.A.R.T. monitoring daemon" - start-stop-daemon --stop --exec /usr/sbin/smartd \ - --pidfile /var/run/smartd.pid - eend $? -} - -reload() { - ebegin "Reloading configuration" - start-stop-daemon --oknodo --stop --signal HUP --pidfile /var/run/smartd.pid smartd - eend $? -} |