diff options
author | Dmitry Bogatov <KAction@gnu.org> | 2016-06-12 07:09:30 +0300 |
---|---|---|
committer | Dmitry Bogatov <KAction@gnu.org> | 2016-06-12 07:09:30 +0300 |
commit | 2b6664995c19638a7df65b5a7762aa42adac8512 (patch) | |
tree | a85a9d0f189070bba0456de704cdfec4eb1b489a /dh_runit | |
parent | fc35408ab60287a4e978ba93e61c2ded44342e7d (diff) |
drop documentation about package.runit as runscript
Diffstat (limited to 'dh_runit')
-rwxr-xr-x | dh_runit | 22 |
1 files changed, 3 insertions, 19 deletions
@@ -15,7 +15,7 @@ no warnings 'experimental::signatures'; | |||
15 | 15 | ||
16 | =head1 SYNOPSIS | 16 | =head1 SYNOPSIS |
17 | 17 | ||
18 | B<dh_runit> [S<I<debhelper options>>] [B<--no-enable>] | 18 | B<dh_runit> [S<I<debhelper options>>] |
19 | 19 | ||
20 | =head1 DESCRIPTION | 20 | =head1 DESCRIPTION |
21 | 21 | ||
@@ -29,11 +29,7 @@ represented by directory under F</etc/sv>, containing at least F<run> | |||
29 | executable file. Every enabled program is represented by symbolic link | 29 | executable file. Every enabled program is represented by symbolic link |
30 | under F</etc/services> pointing to some directory under F</etc/sv>. | 30 | under F</etc/services> pointing to some directory under F</etc/sv>. |
31 | 31 | ||
32 | If F<debian/I<package>.runit> is not executable, but contains shebang | 32 | F<debian/I<package>.runit> is a list of lines, where |
33 | (#!) in first line, it is installed as F</etc/sv/I<package>/run> and | ||
34 | enabled. | ||
35 | |||
36 | Alternatively, F<debian/I<package>.runit> is a list of lines, where | ||
37 | every line is either starts with hash symbol and considered comment, | 33 | every line is either starts with hash symbol and considered comment, |
38 | or contains two or three space-separated words. | 34 | or contains two or three space-separated words. |
39 | 35 | ||
@@ -51,18 +47,6 @@ or contains two or three space-separated words. | |||
51 | # Also, you can explicitly specify name of directory under /etc/sv | 47 | # Also, you can explicitly specify name of directory under /etc/sv |
52 | enable path/to/directory my-preferred-name | 48 | enable path/to/directory my-preferred-name |
53 | 49 | ||
54 | =head1 OPTIONS | ||
55 | |||
56 | =over 4 | ||
57 | |||
58 | =item B<--no-enable> | ||
59 | |||
60 | Do not enable any runscripts. Useful, when F<debian/I<package>.runit> | ||
61 | is the only runscript, in which case you have no other ways to | ||
62 | specify, that it should not be enabled. | ||
63 | |||
64 | =back | ||
65 | |||
66 | =cut | 50 | =cut |
67 | 51 | ||
68 | sub ensure_executable($directory) { | 52 | sub ensure_executable($directory) { |
@@ -76,7 +60,7 @@ sub runit_autoscript($pkg, $script, $sed) { | |||
76 | autoscript($pkg, $script, "$script-runit", $sed); | 60 | autoscript($pkg, $script, "$script-runit", $sed); |
77 | } | 61 | } |
78 | 62 | ||
79 | init(option => { 'no-enable' => \$dh{NO_ENABLE} }); | 63 | init(); |
80 | 64 | ||
81 | PKG: foreach my $pkg (@{$dh{DOPACKAGES}}) { | 65 | PKG: foreach my $pkg (@{$dh{DOPACKAGES}}) { |
82 | next if is_udeb($pkg); | 66 | next if is_udeb($pkg); |