Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fi
}
+test-service-startup-prep () {
+ rsyslog-capture-daemon
+ service rsyslog force-reload
+
+ perl <test/test.cfg >/etc/hippotat/main.cfg -pe '
+ s{^addrs *=.*}{addrs = 127.0.0.1};
+ '
+
+ cat >>/etc/default/hippotatd <<END
+ set -x
+ CHECK_FIREWALL=false
+ USER=root
+END
+}
+
filesystem-prep () {
cs=$1; shift
# expects $tmp to be set to test-specific temp dir (abs path)
test-prep
-rsyslog-capture-daemon
-service rsyslog force-reload
-
-perl <test/test.cfg >/etc/hippotat/main.cfg -pe '
- s{^addrs *=.*}{addrs = 127.0.0.1};
-'
-
-cat >>/etc/default/hippotatd <<END
-set -x
-CHECK_FIREWALL=false
-USER=root
-END
+test-service-startup-prep
# hippotatd is not actually running now because the init script checks
# if we have any configured endpoints, and doesn't run it if not.