more useful options | |
PerlMonks |
Re^4: Abort if instance already running?by rir (Vicar) |
on Jan 06, 2009 at 21:40 UTC ( [id://734504]=note: print w/replies, xml ) | Need Help?? |
Even without multiple hosts, also knowing the lockfile technique is worthwhile as it is more easily adaptable to represent other assets. That a lockfile must be cleaned up is an advantage in that situation. The ephemeral (crash) and expensive (proc-table) nature of a process work against you.
That the process is both the contender and the symbol of contention hinders splitting out functionality into a separate administrative program. Under linux /var/lock is the place for lockfiles.
Be well,
In Section
Seekers of Perl Wisdom
|
|