]> git.street.me.uk Git - andy/dehydrated.git/commit
Add new parameter --lock-suffix. (#287)
authorEihrister <daniel@mostertman.org>
Sun, 18 Dec 2016 19:25:49 +0000 (20:25 +0100)
committerLukas Schauer <lukas2511@users.noreply.github.com>
Sun, 18 Dec 2016 19:25:49 +0000 (20:25 +0100)
commit8456855e48a4240b98b5043eceb6764c1150f2bd
tree996b644aeed93f7f3e8c0c925f517c534cffd640
parent9729751d93b59d9bef2347406716e4a593cf8dee
Add new parameter --lock-suffix. (#287)

* Add new parameter --lock-suffix.

This enables automation systems to run multiple instances of dehydrated
while still maintaining a locking facility. This is necessary for
projects like https://github.com/GUI/lua-resty-auto-ssl.

With this feature, one could run the script multiple times, while still
having a form of locking:

./dehydrated --lock-suffix test1.example.com -d test1.example.com
./dehydrated --lock-suffix test2.example.com -d test2.example.com
./dehydrated --lock-suffix test3.example.com -d test3.example.com
./dehydrated --lock-suffix test4.example.com -d test4.example.com
./dehydrated --lock-suffix test5.example.com -d test5.example.com

When starts the script with the same locking suffix, the scripts exits
like it normally would when locked. This will give you the benefits of
using --no-lock, without the disadvantages of it.

* Fixed unbound variable error for new PARAM_LOCKFILE_SUFFIX.
dehydrated