NAME

narada-lock-exclusive - run command under exclusive lock

VERSION

This document describes narada-lock-exclusive version v2.3.8

USAGE

narada-lock-exclusive [/path/to/commands param ...]

DESCRIPTION

Should be executed in project deploy directory (or Narada 1.x project root directory).

Wrapper for running other process under exclusive_lock(). Will also set environment variable NARADA_SKIP_LOCK to "1", so all scripts executed under this wrapper will not try to set their own locks.

When executed without params will run `bash --norc` with '[LOCKED]' prefix in $PS1.

Exit status of narada-lock-exclusive will be same as exit status of executed command.

CONFIGURATION AND ENVIRONMENT

.lock
.lock.new
$NARADA_SKIP_LOCK

COMPATIBILITY

Narada 1.x project use var/.lock instead of .lock.

Narada 1.x project use var/.lock.new instead of .lock.new.

SUPPORT

Bugs / Feature Requests

Please report any bugs or feature requests through the issue tracker at https://github.com/powerman/Narada/issues. You will be notified automatically of any progress on your issue.

Source Code

This is open source software. The code repository is available for public review and contribution under the terms of the license. Feel free to fork the repository and submit pull requests.

https://github.com/powerman/Narada

git clone https://github.com/powerman/Narada.git

Resources

AUTHOR

Alex Efros <powerman@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2008- by Alex Efros <powerman@cpan.org>.

This is free software, licensed under:

The MIT (X11) License