summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2020-10-20 01:37:07 +0200
committerCarson Fleming <cflems@cflems.net>2020-10-20 01:37:07 +0200
commitd1d12387664b71aa03e5bc3b87ff0083f86e000e (patch)
tree95e6a58a2a9a1d3842320c8276002f2a5aac940b
parent334464081f965dab0a7c6a83a405771ee102e341 (diff)
downloaddaemonize-d1d12387664b71aa03e5bc3b87ff0083f86e000e.tar.gz
Updated README to reflect new options
-rw-r--r--README.md10
1 files 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 <command> [--chdir] [--noclose]
+daemonize <command> [-d|--chdir] [-n|--noclose] [-1|--log-stdout <logfile>] [-2|--log-stderr <logfile>]
```
__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 <command>
+__--chdir__: *(Optional)* Changes directory to / before executing <command>
+
+__--log-stdout <logfile>__: *(Optional)* Reroutes the program's stdout to the given file before daemonizing.
+
+__--log-stderr <logfile>__: *(Optional)* Reroutes the program's stderr to the given file before daemonizing.