Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Re^3: Abort if instance already running?
in thread Abort if instance already running?

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,
rir

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://734504]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found