aboutsummaryrefslogtreecommitdiffstats
path: root/main/smokeping/smokeping.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-19 12:46:02 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-19 12:46:02 +0000
commit0396fe7e601e603614e8a128b6474cbc145134d5 (patch)
tree237c3b43cd813845c2b56905ac1d1e6cc54cc75f /main/smokeping/smokeping.initd
parentd2c01f95447c189e44f7761c6051e7ecd15f9421 (diff)
downloadaports-0396fe7e601e603614e8a128b6474cbc145134d5.tar.bz2
aports-0396fe7e601e603614e8a128b6474cbc145134d5.tar.xz
main/smokeping: init.d fixes
- replace opts. ref #943 - start after firewall
Diffstat (limited to 'main/smokeping/smokeping.initd')
-rw-r--r--main/smokeping/smokeping.initd12
1 files changed, 3 insertions, 9 deletions
diff --git a/main/smokeping/smokeping.initd b/main/smokeping/smokeping.initd
index 5a21fecd6e..159e549487 100644
--- a/main/smokeping/smokeping.initd
+++ b/main/smokeping/smokeping.initd
@@ -2,11 +2,13 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-opts="${opts} dump reload restore"
+extra_started_commands="reload"
+extra_stopped_commands="dump restore"
depend() {
need net
use dns
+ after firewall
}
checkconfig() {
@@ -48,10 +50,6 @@ reload() {
dump() {
ebegin "Dumping smokeping rrd files to XML for backup or upgrade use"
- if service_started "${myservice}" ; then
- eerror "You need to stop smokeping before dumping files!"
- return 1
- fi
for f in `find /var/lib/smokeping -name '*.rrd' -print` ; do
f_xml=`dirname $f`/`basename $f .rrd`.xml
rrdtool dump "$f" > "${f_xml}"
@@ -62,10 +60,6 @@ dump() {
restore() {
ebegin "Restoring smokeping rrd files from XML dump files"
- if service_started "${myservice}" ; then
- eerror "You need to stop smokeping before restoring files!"
- return 1
- fi
for f in `find /var/lib/smokeping -name '*.xml' -print` ; do
f_rrd=`dirname $f`/`basename $f .xml`.rrd
mv -f "${f_rrd}" "${f_rrd}.bak"