From d55b74edb508e4795b4a4e511e92089f3af2fad4 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Thu, 2 Mar 2017 12:58:55 +0300 Subject: Remove 'logdir' option for simplicity sake. Strictly speaking it is backward-incompatible change, hence the version major bump, but I am unaware of any actual users of this option. --- dh_runit | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'dh_runit') diff --git a/dh_runit b/dh_runit index 876b23a..3be25bb 100755 --- a/dh_runit +++ b/dh_runit @@ -16,7 +16,6 @@ sub parse_options($opts) { when (/^disable$/) { $conf->{enable} = 0; }; when (/^name=(.*)$/) { $conf->{name} = $1; }; when (/^logscript$/) { $conf->{logscript} = 1}; - when (/^logdir=(.*)$/) { $conf->{logdir} = $1 }; when (/^defaults$/) { "do nothing"; }; default { error("unknown option `$opt'"); } } @@ -79,7 +78,7 @@ PKG: foreach my $pkg (@{$dh{DOPACKAGES}}) { } runit_autoscript($pkg, 'postrm', "s/#NAME#/$name/"); if ($conf->{logscript}) { - my $logdir = $conf->{logdir} || "/var/log/runit/$name"; + my $logdir = "/var/log/runit/$name"; install_dir("$sv_dir/$name/log"); install_dir($tmp . $logdir); @@ -158,11 +157,6 @@ is error, following are supported: rights of dedicated user. It is error, if first argument in pair is directory, which already contains F script. -=item I=/path/to/log/directory - - This option is meaningful only with I. It allows - overriding default log directory F>. - =item I If you need no other options, put this one. -- cgit v1.2.3