2 # Copyright 1999-2011 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
6 extra_started_commands="reload"
8 pidfile=/var/run/upsmon.pid
16 ebegin "Starting upsmon"
17 start-stop-daemon --start --quiet --exec ${bin}
22 ebegin "Stopping upsmon"
23 start-stop-daemon --stop --quiet --pidfile ${pidfile}
27 ebegin "Reloading upsd"
28 start-stop-daemon --stop --signal HUP --oknodo --quiet --pidfile ${pidfile}