diff options
author | bnewbold <bnewbold@robocracy.org> | 2012-11-21 16:35:23 +0100 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2012-11-21 16:35:23 +0100 |
commit | 8499775037f6fbcae722a2ae43f4d3e78ff443ae (patch) | |
tree | 2aee8326f3c2872bc41e46f418d519406f3590d1 | |
parent | d8bcd3289a5c562f6b880da97d29bc73bdccfe7d (diff) | |
download | exmachina-8499775037f6fbcae722a2ae43f4d3e78ff443ae.tar.gz exmachina-8499775037f6fbcae722a2ae43f4d3e78ff443ae.zip |
disclaimers
-rw-r--r-- | DISCLAIMER | 9 | ||||
-rw-r--r-- | README | 10 | ||||
-rwxr-xr-x | exmachina.py | 2 |
3 files changed, 19 insertions, 2 deletions
diff --git a/DISCLAIMER b/DISCLAIMER new file mode 100644 index 0000000..a775b14 --- /dev/null +++ b/DISCLAIMER @@ -0,0 +1,9 @@ + +ACHTUNG! +WARNING! +DANGER! + +This code is hackish and not "production quality. It represents a potential +approach to a specific problem (privilage seperation for system configuration). +It has not been extensively reviewed or tested and does not represent a known +best practice. @@ -6,6 +6,14 @@ by the hand of root + + + + ! ! ! ! ! ! ! ! ! ! ! ! ! ! + ! ! ! READ ./DISCLAIMER ! ! ! + ! ! ! ! ! ! ! ! ! ! ! ! ! ! + + ### Status Basic server and client functionality implemented. Crude, and far more simple @@ -16,7 +24,7 @@ Features: * call augeas API: match, set, setm, get, save, move, insert, remove * call init.d service scripts: status, start, stop, restart -TODO: +TBD: * use /var/lib/exmachina/<something> as socket instead of /tmp/exmachina.sock? ### Dependancies (server) diff --git a/exmachina.py b/exmachina.py index fa17c7c..1656c5e 100755 --- a/exmachina.py +++ b/exmachina.py @@ -75,7 +75,7 @@ def execute_service(servicename, action, timeout=10): (timeout, command_list)) stdout, stderr = proc.communicate() - # TODO: should raise exception here if proc.returncode != 0? + # TBD: should raise exception here if proc.returncode != 0? return stdout, stderr, proc.returncode def execute_apt(packagename, action, timeout=120, aptargs=['-q', '-y']): |