bind:moved into main repo for pisi 2.0

This commit is contained in:
2015-07-10 17:02:50 +03:00
parent 4425bb64fa
commit 968e1e2f16
25 changed files with 1806 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
import os
from comar.service import *
serviceType = "server"
serviceDesc = _({"en": "BIND Daemon",
"tr": "BIND Servisi"})
serviceConf = "named"
PIDFILE = "/run/named/named.pid"
@synchronized
def start():
startService(command="/usr/sbin/named",
args="-u named -n %s %s" % (config.get("CPU", "1"), config.get("OPTIONS", "")),
pidfile=PIDFILE,
donotify=True)
@synchronized
def stop():
stopService(pidfile=PIDFILE,
donotify=True)
def status():
return isServiceRunning(PIDFILE)