From b7890d06f467a0b5e0ca7f7753120aec1cc23260 Mon Sep 17 00:00:00 2001 From: Jon duSaint Date: Wed, 23 Nov 2022 18:03:50 -0800 Subject: netmon: Network interface monitor Monitor a network interface. If the IP address disappears, reconfigure the interface. --- jobmon/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 jobmon/Makefile (limited to 'jobmon/Makefile') diff --git a/jobmon/Makefile b/jobmon/Makefile new file mode 100644 index 0000000..9fa9050 --- /dev/null +++ b/jobmon/Makefile @@ -0,0 +1,11 @@ +# Use EXTRA_FLAGS on the command line for additional options (-g, -static, etc.) +all: netmon +netmon: netmon.c + $(CC) -Wall $(CFLAGS) $(EXTRA_FLAGS) -o $@ $< +install-netmon: netmon + install -m 0555 netmon /usr/sbin/netmon + install -m 0555 netmon.rc /etc/rc.d/netmon + @echo "-> Enable netmon service manually with rcctl(8)" +install: install-netmon +clean: + rm -f netmon -- cgit v1.2.3