S-LOCKER(8)
S-LOCKER(8)

Perfect haCron

NAME

s-locker - The shared between servers locker for cron.

SYNOPSIS

s-locker [options] [command [arg1 [arg2 [...]]]]

DESCRIPTION

The s-locker is command for run Your's commands under shared between servers locks control.

OPTIONS

--duplicate-instance=N

Name of lockfile for starting up command generated as hash from running command and passed arguments. This is to block for run duplicate instance on other servers and on single server. For running 2/3/N instances of commnad You must use --duplicate-instance=2, --duplicate-instance=N with N - number of instance.

Example:
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

*/5 * * * * s-locker /path/to/your/cron/app --and --arguments
*/5 * * * * s-locker --duplicate-instance=2 /path/to/your/cron/app --and --arguments
*/5 * * * * s-locker --duplicate-instance=3 /path/to/your/cron/app --and --arguments

command with args

You command which must be runned HA and locker by s-locker

ENVIRONMENT

The s-locker not use environment variables and set PATH and other only for self inside

EXIT STATUS

Bad configuration exits

1 — Directory /var/shared/lock not exists, exiting by constraint

3 — Device /dev/drbdX not exists, but configured in s-locker.conf, exiting by constraint

Bad state exits

5 — My drbd device is outdated, please fix outdated state.

6 — Both servers in primary state in drbd, exiting by constraint

8 — Split brain detected, exiting by constraint. Please fix split brain

Normal exits

10 — This server is alive, but crons run on other server, exiting by logic

11 — local locks conflict (duplicate run attempt), exiting by logic

12 — shared locks for haCron hot standby process conflict (duplicate hot standby proccess), exiting by logic

0 — All okay

N — Exit code from your runned software

FILES

Used configuration files:

BUGS

All known bugs stored in support team bug-tracker and fixing on time in order by priority. You can get latest updates and instructions by email: hacron-maint@perfect-inc.com

AUTHOR

Perfect Solutions, Russian Federation <hacron@perfect-inc.com>

COPYRIGHT

Оставить заявку

Задать вопрос

Ваша заявка успешно отправлена

Мы свяжемся с вами в ближайшее время