import datetime
import calendar
import signal
+import argparse
import glib
import gobject
import dbussvc
import zfs
import smf
-import timeslidersmf
-import autosnapsmf
+import time_slider.linux.timeslidersmf as timeslidersmf
+import time_slider.linux.autosnapsmf as autosnapsmf
import plugin
-from rbac import RBACprofile
+from time_slider.linux.rbac import RBACprofile
import util
_MINUTE = 60
def main(argv):
+ parser = argparse.ArgumentParser()
+ parser.add_argument('--foreground', action='store_true', help='Do not daemonize', default=False)
+ args, _ = parser.parse_known_args()
# Daemonise the service.
- create_daemon()
+ if not args.foreground:
+ create_daemon()
# The user security attributes checked are the following:
# Note that UID == 0 will match any profile search so