Skip to content

Commit

Permalink
modified: immortal.8
Browse files Browse the repository at this point in the history
  • Loading branch information
nbari committed Mar 19, 2017
1 parent baa6f0c commit 53a3ffd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions man/immortal.8
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ Run a command, restart it when finishes, log output to file, and follow pid if i

immortal -l /tmp/x.log -logger "tee /tmp/y.log" -f ./unicorn.pid bundle exec unicorn -c unicorn.rb

Run a command, restart it when finishes, log output to file and create supervice dir in /tmp/immortal/sleep

immortal -l /tmp/sleep.log -ctl /tmp/immortal/sleep /bin/sh -c "sleep 5 && date"

For making immortalctl(8) work using the -ctl <dir> the IMMORTAL_SDIR environment var should be set to /tmp/immortal

Configuration example:

cmd: bundle exec unicorn -c unicorn.rb
Expand Down

0 comments on commit 53a3ffd

Please sign in to comment.