add remote start and stop hooks
Locking is used, so that, if there are multiple git-annex processes using a remote concurrently, the stop hook is only run by the last process that uses it.
This commit is contained in:
parent
fba66c55ed
commit
52e88f3ebf
5 changed files with 118 additions and 1 deletions
|
@ -627,6 +627,21 @@ Here are all the supported configuration settings.
|
|||
This allows varying the cost based on eg, the current network. The
|
||||
cost-command can be any shell command line.
|
||||
|
||||
* `remote.<name>.annex-start-command`
|
||||
|
||||
A command to run when git-annex begins to use the remote. This can
|
||||
be used to, for example, mount the directory containing the remote.
|
||||
|
||||
The command may be run repeatedly in multiple git-annex processes
|
||||
are running concurrently.
|
||||
|
||||
* `remote.<name>.annex-stop-command`
|
||||
|
||||
A command to run when git-annex is done using the remote.
|
||||
|
||||
The command will only be run once *all* running git-annex processes
|
||||
are finished using the remote.
|
||||
|
||||
* `remote.<name>.annex-ignore`
|
||||
|
||||
If set to `true`, prevents git-annex
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue