Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,11 @@ time=YYYY-MM-DDTHH:MM:SS level=INFO msg="initialized db" path=/path/to/your/app/
time=YYYY-MM-DDTHH:MM:SS level=INFO msg="replicating to" name=s3 type=s3 sync-interval=1s bucket=mybkt path="" region=us-east-1 endpoint=http://localhost:9000
```

### Troubleshooting

Some version of Linux don't install `ps`, you may need to install it in order to
leverage the Rails engine.

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
Expand Down
2 changes: 1 addition & 1 deletion lib/litestream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def systemctl_info
end

def process_info
litestream_replicate_ps = `ps -ax | grep litestream | grep replicate`
litestream_replicate_ps = `ps -ef | grep litestream | grep replicate`
exit_code = $?.exitstatus
return unless exit_code.zero?

Expand Down
2 changes: 1 addition & 1 deletion test/test_litestream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_replicate_process_ps

stubbed_backticks = proc do |arg|
case arg
when "ps -ax | grep litestream | grep replicate"
when "ps -ef | grep litestream | grep replicate"
stubbed_ps_list
when %(ps -o "state,lstart" 40364)
stubbed_ps_status
Expand Down