Use unique lock file names to support multiple instances
commit58c5a1ffedf236f75b52dcde0f7a827d266bd903
authorKyle J. McKay <mackyle@gmail.com>
Tue, 9 Jul 2013 16:28:58 +0000 (9 09:28 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 9 Jul 2013 16:28:58 +0000 (9 09:28 -0700)
tree714f215dab4738bb1f110a93a487f7fe6a06850c
parentf343ec49b6f7e8afcdd8a515ec82396d9f0cb23e
Use unique lock file names to support multiple instances

The gitwebcache.sh, updateweb.sh and jobd.pl lock files should
be in /tmp so they are automatically removed on restart.

However, this prevents multiple Girocco instances running on
the same machine unless they have unique names.

Add a 6-character unique suffix to the names based on the
name of the Girocco instance (the generated suffix is always
the same for any given Girocco instance name).
Girocco/Config.pm
jobd/jobd.pl
jobs/gitwebcache.sh
jobs/updateweb.sh