summaryrefslogtreecommitdiff
path: root/README.md
blob: c84a4f233abb16a2ef5a0aa12dc58ac6ff6fd610 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# daemonize
A utility to send shell commands to the background.

### Instant Install
Linux/BSD/\*nix other than OSX
```bash
curl -s https://raw.githubusercontent.com/cflems/daemonize/master/daemonize.c | sudo gcc -xc -o /usr/bin/daemonize -
```
OSX
```bash
curl -s https://raw.githubusercontent.com/cflems/daemonize/master/daemonize.c | sudo gcc -xc -o /usr/local/bin/daemonize -
```

### Usage
```bash
daemonize <command> [--chdir] [--noclose]
```
__command__: *(Required)* The command to execute as a daemon.

__noclose__: *(Optional)* Leaves streams to the current terminal session open.

__chdir__: *(Optional)* Changes directory to / before executing <command>