Fix 'daemon' misspelling

This commit is contained in:
desbma
2014-10-05 22:17:39 +02:00
parent 43e5660ecb
commit 78fefd69c4
2 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -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
+5 -5
View File
@@ -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))