From 6532ad7501e2e2e7845fd3b41f0db90d6fd18962 Mon Sep 17 00:00:00 2001 From: Alejandro Date: Thu, 12 Jun 2008 12:09:06 +0200 Subject: [PATCH] Improved `make restart` to support runsvctl and sv --- root/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/root/Makefile b/root/Makefile index 3689297..21e51c6 100644 --- a/root/Makefile +++ b/root/Makefile @@ -5,7 +5,11 @@ all: make_recursive restart: @if [ -e /service/tinydns ]; then \ - /command/runsvctrl h /service/tinydns; \ + for x in runsvctrl sv; do \ + if [ -x /command/$$x ]; then \ + /command/$$x h /service/tinydns; \ + fi; \ + done ; \ fi clean: clean_recursive