Skip to content

Commit 640b74a

Browse files
committed
document signals
1 parent cc1aac7 commit 640b74a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,18 @@ current backup has finished, and exit afterwards.
225225
You can find the pid of the running process in the repository directory in the
226226
file `.pid`.
227227

228+
Signals
229+
-------
230+
231+
snaprd responds to various signals.
232+
233+
- **INT**, **TERM**: Makes snaprd exit immediately, killing a potentially
234+
running rsync process using the same signal.
235+
- **USR1**: While rsync is running, wait until it finished, then exit.
236+
Otherwise just exit.
237+
- **USR2**: If snaprd is idle waiting for the next scheduled snapshot,
238+
sending SIGUSR2 will cancel this waiting time and force an immediate
239+
snapshot.
228240

229241
Schedules
230242
---------

0 commit comments

Comments
 (0)