GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LOCKERSH(1) User Contributed Perl Documentation LOCKERSH(1)

lockersh - Run a command under a global lock

  lockersh [--dhost <host> --port <port>] --lock <name> [args....]

Obtain a global IPC::Locker lock with the passed name.

When the lock is granted, run the arguments as a command in the foreground. When the foreground process exits, release the lock, and return the executed command's exit status.

This makes it very easy to insure only one copy of a program executes across a clump:

   lockersh --lock one_sleep_runs sleep 10

--dhost host
Hostname of lockerd server. Defaults to IPCLOCKER_HOST environment variable.
--help
Displays this message and program version and exits.
--lock lockname
Name for the lock. This argument may be passed multiple times or with a colon separator to allow one of multiple possible locks to be selected.
--locklist
Suppress normal operation, and instead print a list of all outstanding locks and their owners.
--port port
Port of pidstatd server on remote host. Defaults IPCLOCKER_PORT environment variable.
--timeout
Set number of seconds before wait for license will timeout. Defaults to wait forever.
--verbose
Print 'waiting for lock' and similar messages.
--version
Displays program version and exits.

IPCLOCKER_HOST
Hostname of lockerd server, or colon separated list including backup servers. Defaults to localhost.
IPCLOCKER_PORT
Port number of lockerd server. Defaults to 1751.

The latest version is available from CPAN and from <https://www.veripool.org/ipc-locker>.

Copyright 2006-2019 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License Version 3 or the Perl Artistic License Version 2.0.

Wilson Snyder <wsnyder@wsnyder.org>

IPC::Locker, lockerd
2019-10-26 perl v5.32.1

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.