summaryrefslogtreecommitdiff
path: root/dh_runit
diff options
context:
space:
mode:
Diffstat (limited to 'dh_runit')
-rwxr-xr-xdh_runit8
1 files changed, 1 insertions, 7 deletions
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) {
16 when (/^disable$/) { $conf->{enable} = 0; }; 16 when (/^disable$/) { $conf->{enable} = 0; };
17 when (/^name=(.*)$/) { $conf->{name} = $1; }; 17 when (/^name=(.*)$/) { $conf->{name} = $1; };
18 when (/^logscript$/) { $conf->{logscript} = 1}; 18 when (/^logscript$/) { $conf->{logscript} = 1};
19 when (/^logdir=(.*)$/) { $conf->{logdir} = $1 };
20 when (/^defaults$/) { "do nothing"; }; 19 when (/^defaults$/) { "do nothing"; };
21 default { error("unknown option `$opt'"); } 20 default { error("unknown option `$opt'"); }
22 } 21 }
@@ -79,7 +78,7 @@ PKG: foreach my $pkg (@{$dh{DOPACKAGES}}) {
79 } 78 }
80 runit_autoscript($pkg, 'postrm', "s/#NAME#/$name/"); 79 runit_autoscript($pkg, 'postrm', "s/#NAME#/$name/");
81 if ($conf->{logscript}) { 80 if ($conf->{logscript}) {
82 my $logdir = $conf->{logdir} || "/var/log/runit/$name"; 81 my $logdir = "/var/log/runit/$name";
83 82
84 install_dir("$sv_dir/$name/log"); 83 install_dir("$sv_dir/$name/log");
85 install_dir($tmp . $logdir); 84 install_dir($tmp . $logdir);
@@ -158,11 +157,6 @@ is error, following are supported:
158 rights of dedicated user. It is error, if first argument in pair 157 rights of dedicated user. It is error, if first argument in pair
159 is directory, which already contains F</log/run> script. 158 is directory, which already contains F</log/run> script.
160 159
161=item I<logdir>=/path/to/log/directory
162
163 This option is meaningful only with I<logscript>. It allows
164 overriding default log directory F</var/log/runit/I<name>>.
165
166=item I<defaults> 160=item I<defaults>
167 161
168 If you need no other options, put this one. 162 If you need no other options, put this one.