Initial commit.
This commit is contained in:
18
services/init.d/named
Executable file
18
services/init.d/named
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/opt/bin/watchman
|
||||
# named init script for watchman
|
||||
|
||||
ROOTDIR='/share/MD0_DATA/.qpkg/Optware'
|
||||
service_command="${ROOTDIR}/etc/named/named.fucked"
|
||||
service_respawn=true
|
||||
service_logfile='/share/Public/logs/named/named.log'
|
||||
|
||||
unset reload
|
||||
|
||||
start() {
|
||||
while [ ! -x /opt/sbin/named ]; do sleep 1; done
|
||||
watchman.start
|
||||
}
|
||||
|
||||
status() {
|
||||
/opt/sbin/rndc -s 127.0.0.1 status
|
||||
}
|
||||
Reference in New Issue
Block a user