diff options
| author | Carson Fleming <cflems@cflems.net> | 2020-10-20 01:37:07 +0200 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2020-10-20 01:37:07 +0200 |
| commit | d1d12387664b71aa03e5bc3b87ff0083f86e000e (patch) | |
| tree | 95e6a58a2a9a1d3842320c8276002f2a5aac940b | |
| parent | 334464081f965dab0a7c6a83a405771ee102e341 (diff) | |
| download | daemonize-d1d12387664b71aa03e5bc3b87ff0083f86e000e.tar.gz | |
Updated README to reflect new options
| -rw-r--r-- | README.md | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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. |
