blob: 336bc4ea9be994f52d0bb9710d5e9e5ef5c49650 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
pidfile="/run/smartd.pid"
command="/usr/sbin/smartd"
command_args="-p ${pidfile} ${SMARTD_OPTS}"
extra_started_commands="reload"
depend() {
need localmount
after bootmisc
}
start_pre() {
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
}
reload() {
ebegin "Reloading configuration"
start-stop-daemon --signal HUP --pidfile ${pidfile} ${command##*/}
eend $?
}
|