Makes it easy to address bmx7 shorids and hostnames with ping, ssh, etc. Both are stored in /tmp/hosts/ and so loaded by dnsmasq. Instead of using a cron job which triggers the bmx7 deamon every so and so, inotifywait is used to see creation or deletion of originators in /var/run/bmx7/json/originators/ Signed-off-by: Paul Spooren <spooren@informatik.uni-leipzig.de>
14 lines
265 B
Bash
Executable file
14 lines
265 B
Bash
Executable file
#!/bin/sh /etc/rc.common
|
|
START=92
|
|
USE_PROCD=1
|
|
|
|
BIN=/usr/bin/bmx7-dnsupdate
|
|
|
|
start_service() {
|
|
procd_open_instance "bmx7-dnsupdate"
|
|
procd_set_param command "$BIN"
|
|
procd_set_param stdout 1
|
|
procd_set_param stderr 1
|
|
procd_set_param respawn
|
|
procd_close_instance
|
|
}
|