mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 09:40:18 +04:00
nsd: Add new package
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
This commit is contained in:
16
net/nsd/files/nsd.init
Normal file
16
net/nsd/files/nsd.init
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2014 OpenWrt.org
|
||||
|
||||
START=60
|
||||
USE_PROCD=1
|
||||
PROG=/usr/sbin/nsd
|
||||
|
||||
start_service() {
|
||||
mkdir -p /var/db/nsd
|
||||
chown network /var/db/nsd
|
||||
chmod 640 /etc/nsd/*.conf 2>/dev/null
|
||||
chgrp network /etc/nsd/*.conf 2>/dev/null
|
||||
procd_open_instance
|
||||
procd_set_param command "$PROG" -d
|
||||
procd_close_instance
|
||||
}
|
||||
Reference in New Issue
Block a user