aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-09-10 15:32:17 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2014-09-10 15:32:17 +0300
commit2058b5fa7f286338fb5b7e9fa586fe4dfe0db31d (patch)
tree593b3ba459dac92c75bcf433baff26fe99da2faf
parentfd4ddf1cf5b7d5f67f0aa5d676e5f90158fb57e7 (diff)
downloaddnstools-2058b5fa7f286338fb5b7e9fa586fe4dfe0db31d.tar.gz
dnstools-2058b5fa7f286338fb5b7e9fa586fe4dfe0db31d.tar.bz2
vhostcname: use direvent instead of dircond
-rwxr-xr-xvhostcname/vhostcname14
1 files changed, 7 insertions, 7 deletions
diff --git a/vhostcname/vhostcname b/vhostcname/vhostcname
index eddb9fd..b5a35e0 100755
--- a/vhostcname/vhostcname
+++ b/vhostcname/vhostcname
@@ -312,9 +312,9 @@ push(@zone, $host) if ($#zone == -1);
$debug++ if ($dry_run);
if ($#ARGV == -1) {
- abend(3, "command not given") unless ($ENV{'DIRCOND_FILE'});
- print STDERR "$script: started as dircond handler for " .
- "$ENV{'DIRCOND_GENEV_NAME'} on $ENV{'DIRCOND_FILE'}\n"
+ abend(3, "command not given") unless ($ENV{'DIREVENT_FILE'});
+ print STDERR "$script: started as direvent handler for " .
+ "$ENV{'DIREVENT_GENEV_NAME'} on $ENV{'DIREVENT_FILE'}\n"
if ($debug);
my $cwd = getcwd;
my $update_dir;
@@ -323,7 +323,7 @@ if ($#ARGV == -1) {
foreach my $file (glob "$confdir/sites-enabled/$confpat") {
next unless (-l $file);
if (realpath(readlink($file)) eq
- "$confdir/sites-available/$ENV{'DIRCOND_FILE'}") {
+ "$confdir/sites-available/$ENV{'DIREVENT_FILE'}") {
$update_dir = "$confdir/sites-enabled";
last;
}
@@ -385,10 +385,10 @@ For example, on Debian-based GNU/Linux:
ln -sf /usr/bin/vhostcname /etc/init.d
update-rc.d vhostcname defaults
-The program can also be ised as a B<dircond>(8) handler. This use
+The program can also be ised as a B<direvent>(8) handler. This use
allows for immediate updates of the DNS records upon any modifications
to the Apache configuration files. The following example shows the
-corresponding B<dircond.conf>(5) entry:
+corresponding B<direvent.conf>(5) entry:
watcher {
path /etc/apache2/sites-available;
@@ -558,7 +558,7 @@ DNSSEC key. Ditto for the B<--server> option.
=head1 SEE ALSO
-B<dircond>(8).
+B<direvent>(8).
=head1 AUTHOR

Return to:

Send suggestions and report system problems to the System administrator.