The lock-file configuration (both from configuration file and -X argument to named) has better alternatives nowadays. Modern process supervisor should be used to ensure that a single named process is running on a given configuration. Alternatively, it's possible to wrap the named with flock(1).
38 lines
1015 B
Bash
38 lines
1015 B
Bash
#!/bin/sh
|
|
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
#
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
|
#
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
# information regarding copyright ownership.
|
|
|
|
#
|
|
# Clean up after log file tests
|
|
#
|
|
rm -f ns1/named.conf
|
|
rm -f ns1/named.args
|
|
rm -f ns1/named.pid ns1/named.run ns1/named.run.prev
|
|
rm -f ns1/named.memstats ns1/dig.out
|
|
rm -f ns1/named_log ns1/named_pipe ns1/named_sym
|
|
rm -rf ns1/named_dir
|
|
rm -f ns1/named_deflog
|
|
rm -f ns1/query_log
|
|
rm -f ns1/named_iso8601
|
|
rm -f ns1/named_iso8601_utc
|
|
rm -f ns1/rndc.out.test*
|
|
rm -f ns1/dig.out.test*
|
|
rm -f ns1/named_vers
|
|
rm -f ns1/named_vers.*
|
|
rm -f ns1/named_ts
|
|
rm -f ns1/named_ts.*
|
|
rm -f ns1/named_inc
|
|
rm -f ns1/named_inc.*
|
|
rm -f ns1/named_unlimited
|
|
rm -f ns1/named_unlimited.*
|
|
rm -f ns*/managed-keys.bind*
|