git.schokokeks.org
Repositories
Help
Report an Issue
keks-overlay.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
edd3cff
Branches
Tags
master
keks-overlay.git
sys-apps
smartmontools
files
smartd.rc
add smartmontools cvs ebuild, needed for our hds
Hanno Böck
commited
edd3cff
at 2007-05-01 20:20:40
smartd.rc
Blame
History
Raw
#!/sbin/runscript # Copyright 1999-2004 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.6 2006/02/08 10:21:18 uberlord Exp $ 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" killall -HUP smartd eend $? }