diff options
| author | Jon duSaint | 2022-11-23 18:03:50 -0800 |
|---|---|---|
| committer | Jon duSaint | 2022-11-23 18:03:50 -0800 |
| commit | b7890d06f467a0b5e0ca7f7753120aec1cc23260 (patch) | |
| tree | 8cc8674f84b34f392656314c98ae1809de84438d /jobmon/Makefile | |
| parent | 4445becdc84e05859d90d13d0d98625a0b72f9e9 (diff) | |
netmon: Network interface monitor
Monitor a network interface. If the IP address disappears, reconfigure the interface.
Diffstat (limited to '')
| -rw-r--r-- | jobmon/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
