From d1d12387664b71aa03e5bc3b87ff0083f86e000e Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Tue, 20 Oct 2020 01:37:07 +0200 Subject: Updated README to reflect new options --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c84a4f2..6614d7a 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,14 @@ curl -s https://raw.githubusercontent.com/cflems/daemonize/master/daemonize.c | ### Usage ```bash -daemonize [--chdir] [--noclose] +daemonize [-d|--chdir] [-n|--noclose] [-1|--log-stdout ] [-2|--log-stderr ] ``` __command__: *(Required)* The command to execute as a daemon. -__noclose__: *(Optional)* Leaves streams to the current terminal session open. +__--noclose__: *(Optional)* Leaves input and output streams to the current terminal session open. Individual streams are overridden with logging options. -__chdir__: *(Optional)* Changes directory to / before executing +__--chdir__: *(Optional)* Changes directory to / before executing + +__--log-stdout __: *(Optional)* Reroutes the program's stdout to the given file before daemonizing. + +__--log-stderr __: *(Optional)* Reroutes the program's stderr to the given file before daemonizing. -- cgit v1.2.3