needed to set up the symlinks in /etc/rc*.d/ and to start and stop the init
scripts.
-If a file named debian/package.upstart exists, then it is installed into
-etc/init/package.conf in the package build directory, with "package" replaced
-by the package name.
+=head1 FILES
-Otherwise, if a file named debian/package.init exists, then it is installed
-into etc/init.d/package in the package build directory, with "package"
-replaced by the package name.
+=over 4
+
+=item debian/I<package>.upstart
+
+If this exists, it is installed into etc/init/I<package>.conf in the package
+build directory.
+
+=item debian/I<package>.init
-If a file named debian/package.default exists, then it is installed into
-etc/default/package in the package build directory, with "package" replaced
-by the package name.
+Otherwise, if this exists, it is installed
+into etc/init.d/I<package> in the package build directory.
+
+=item debian/I<package>.default
+
+If this exists, it is installed into etc/default/I<package> in the package
+build directory.
+
+=back
=head1 OPTIONS
}
my $job=pkgfile($package,"upstart");
- my ($init,$default) = ('','');
+ my $init='';
if ($job ne '' || ($dh{ONLYSCRIPTS} && -e "$tmp/etc/init/$jobfile.conf")) {
if (! $dh{ONLYSCRIPTS}) {
else {
$init=pkgfile($package,$script) || pkgfile($package,"init") ||
pkgfile($package,"init.d");
- $default=pkgfile($package,'default');
}
+ my $default=pkgfile($package,'default');
if ($default ne '' && ! $dh{ONLYSCRIPTS}) {
if (! -d "$tmp/etc/default") {
doit("install","-d","$tmp/etc/default");
doit("install","-p","-m755",$init,"$tmp/etc/init.d/$script");
}
- if ($job ne '' || $init ne '' || $dh{ONLYSCRIPTS})
- {
+ if ($job ne '' || $init ne '' || $dh{ONLYSCRIPTS}) {
if (-e "$tmp/etc/init/$jobfile.conf") {
$script=$jobfile;
}