From 26f73fc5bb226c1d2f0a3d6f686c21c5d0cb24e3 Mon Sep 17 00:00:00 2001 From: Ade Lee Date: Fri, 3 Jan 2014 12:46:36 -0500 Subject: Debian: add init script functionality The addtions in this patch will add start/stop/restart/status functionality to operations, so that Debian systems can perform these operations by calling these functions from an init script. We also introduce a parameter in the configuration scripts that can be used to determine if the system is a debian system. This parameter is used to specify a system V init script instead of a systemd script on a debian system, when the configuration scriptlets start and stop a system. Also source apparently does not work by default in debian. Used dot (.) instead. --- base/common/python/pki/system.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'base/common/python') diff --git a/base/common/python/pki/system.py b/base/common/python/pki/system.py index 9ea93677a..b530d5a10 100644 --- a/base/common/python/pki/system.py +++ b/base/common/python/pki/system.py @@ -21,6 +21,11 @@ import pki.encoder as encoder import xml.etree.ElementTree as ET +import os + +SYSTEM_TYPE="Fedora/RHEL" +if os.path.exists("/etc/debian_version"): + SYSTEM_TYPE="debian" class SecurityDomainInfo: -- cgit