mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
bmx7-dnsupdate: add package
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>
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
}
|
||||
Reference in New Issue
Block a user