summaryrefslogtreecommitdiffstats
path: root/build/lib/Bcfg2/Client/Tools/FreeBSDInit.py
diff options
context:
space:
mode:
authorFabian Affolter <fabian@bernewireless.net>2010-12-13 23:22:40 +0100
committerFabian Affolter <fabian@bernewireless.net>2010-12-13 23:22:40 +0100
commitf5792d907e357c90624ec110d908d42b94296a12 (patch)
treefc4976fb05c8d4026bc2580e48ad8070d85bd7c7 /build/lib/Bcfg2/Client/Tools/FreeBSDInit.py
parent18b3b41b3f993b2dd5a10e1bbb8abf959c57c4e2 (diff)
downloadbcfg2-f5792d907e357c90624ec110d908d42b94296a12.tar.gz
bcfg2-f5792d907e357c90624ec110d908d42b94296a12.tar.bz2
bcfg2-f5792d907e357c90624ec110d908d42b94296a12.zip
Removed build files
Diffstat (limited to 'build/lib/Bcfg2/Client/Tools/FreeBSDInit.py')
-rw-r--r--build/lib/Bcfg2/Client/Tools/FreeBSDInit.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/build/lib/Bcfg2/Client/Tools/FreeBSDInit.py b/build/lib/Bcfg2/Client/Tools/FreeBSDInit.py
deleted file mode 100644
index 10f0f2e93..000000000
--- a/build/lib/Bcfg2/Client/Tools/FreeBSDInit.py
+++ /dev/null
@@ -1,27 +0,0 @@
-"""FreeBSD Init Support for Bcfg2."""
-__revision__ = '$Rev$'
-
-# TODO
-# - hardcoded path to ports rc.d
-# - doesn't know about /etc/rc.d/
-
-import os
-import Bcfg2.Client.Tools
-
-
-class FreeBSDInit(Bcfg2.Client.Tools.SvcTool):
- """FreeBSD service support for Bcfg2."""
- name = 'FreeBSDInit'
- __handles__ = [('Service', 'freebsd')]
- __req__ = {'Service': ['name', 'status']}
-
- def __init__(self, logger, cfg, setup):
- Bcfg2.Client.Tools.Tool.__init__(self, logger, cfg, setup)
- if os.uname()[0] != 'FreeBSD':
- raise Bcfg2.Client.Tools.toolInstantiationError
-
- def VerifyService(self, entry, _):
- return True
-
- def get_svc_command(self, service, action):
- return "/usr/local/etc/rc.d/%s %s" % (service.get('name'), action)