acme: remove lock handling
authorFlorian Eckert <[email protected]>
Fri, 21 Mar 2025 09:30:17 +0000 (10:30 +0100)
committerToke Høiland-Jørgensen <[email protected]>
Tue, 1 Apr 2025 20:53:08 +0000 (22:53 +0200)
Since procd is now used, the call of '/etc/init.d/acme' does not have to be
locked separately. This code block can therefore be removed.

Signed-off-by: Florian Eckert <[email protected]>
net/acme-common/files/acme.init

index d577bfaf5d9396c45a0e465e2c9a79b58eda6a02..d35a0a60e6eec24699847e6f81d63cbf2038b4d7 100644 (file)
@@ -16,9 +16,6 @@ extra_command "renew" "Start a certificate renew"
 
 cleanup() {
        log debug "cleaning up"
-       if [ -e $run_dir/lock ]; then
-               rm $run_dir/lock
-       fi
        if [ "$NFT_HANDLE" ]; then
                # $NFT_HANDLE contains the string 'handle XX' so pass it unquoted to nft
                nft delete rule inet fw4 input $NFT_HANDLE
@@ -159,12 +156,6 @@ service_triggers() {
 }
 
 renew() {
-       exec 200>$run_dir/lock
-       if ! flock -n 200; then
-               log err "Another ACME instance is already running."
-               exit 1
-       fi
-
        trap cleanup EXIT
 
        config_load acme