diff options
author | Stef Walter <stef@thewalter.net> | 2008-06-06 17:35:32 +0000 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2008-06-06 17:35:32 +0000 |
commit | ea4a294b84254fb19b2edd24683fa6501970d049 (patch) | |
tree | cf84f87373ab27562f47093a0b3af70fb0eef156 /slapd-pivot.py |
Initial import
Diffstat (limited to 'slapd-pivot.py')
-rw-r--r-- | slapd-pivot.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/slapd-pivot.py b/slapd-pivot.py new file mode 100644 index 0000000..7eb1dab --- /dev/null +++ b/slapd-pivot.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python + +import sys +import Backend, Pivot + +def run_server(): + Backend.debug = True + server = Backend.Server("/tmp/pivot-slapd.sock", Pivot.Database) + + try: + server.serve_forever() + except KeyboardInterrupt: + sys.exit(0) + + +if __name__ == '__main__': + run_server() + |