moved into main for pisi 2.0

This commit is contained in:
2015-07-04 15:12:13 +03:00
parent 3b48e10776
commit b88266550d
35 changed files with 2498 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
from comar.service import *
serviceType = "server"
serviceDesc = _({"en": "DHCP Relay Server",
"tr": "DHCP Relay Servisi"})
serviceConf = "dhcrelay"
pidfile = "/run/dhcrelay.pid"
@synchronized
def start():
startService(command="/usr/sbin/dhcrelay",
args="%s %s" % (config.get("DHCPD_ARGS", ""), config.get("INTERFACES", "")),
donotify=True)
@synchronized
def stop():
stopService(command="/usr/sbin/dhcpd",
pidfile=pidfile,
donotify=True)
def status():
return isServiceRunning(pidfile)