From 78fefd69c403a8ee002ad9e9f48e2bf92ab09d9a Mon Sep 17 00:00:00 2001 From: desbma Date: Sun, 5 Oct 2014 22:17:39 +0200 Subject: [PATCH] Fix 'daemon' misspelling --- README.md | 6 +++--- hdd_fancontrol.py | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 1c8ac27..fff409f 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ The ideal use case is for a NAS with several hard drives, a low power CPU (ie. A ## Features -* Can be started in deamon mode +* Can be started in daemon mode * Can control several fans and/or several drives with a single invocation * Can automatically spin down drives after a customizable period of inactivity * Can adapt to different fan caracteristics @@ -140,9 +140,9 @@ Some Hitachi (now HGST) drives support a special way of querying temperature tha Level of output to display -b, --background Daemonize process -l LOG_FILEPATH, --log-file LOG_FILEPATH - Filepath for log output when using deamon mode + Filepath for log output when using daemon mode --pid-file PID_FILEPATH - Filepath for lock file when using deamon mode + Filepath for lock file when using daemon mode -t, --test Run some tests and exit diff --git a/hdd_fancontrol.py b/hdd_fancontrol.py index 8a702fc..8b8ed7b 100755 --- a/hdd_fancontrol.py +++ b/hdd_fancontrol.py @@ -541,12 +541,12 @@ if __name__ == "__main__": action="store", default=None, dest="log_filepath", - help="Filepath for log output when using deamon mode") + help="Filepath for log output when using daemon mode") arg_parser.add_argument("--pid-file", action="store", default=None, dest="pid_filepath", - help="Filepath for lock file when using deamon mode") + help="Filepath for lock file when using daemon mode") arg_parser.add_argument("-t", "--test", action="store_true", @@ -583,11 +583,11 @@ if __name__ == "__main__": else: # main - with contextlib.ExitStack() as deamon_context: + with contextlib.ExitStack() as daemon_context: if args.daemonize: preserved_fds = None if args.log_filepath is not None: - log_output = deamon_context.enter_context(open(args.log_filepath, "at+")) + log_output = daemon_context.enter_context(open(args.log_filepath, "at+")) preserved_fds = [log_output.fileno()] else: log_output = None @@ -598,7 +598,7 @@ if __name__ == "__main__": exit(1) else: pidfile = None - deamon_context.enter_context(daemon.DaemonContext(stdout=log_output, + daemon_context.enter_context(daemon.DaemonContext(stdout=log_output, stderr=log_output, pidfile=pidfile, files_preserve=preserved_fds))