summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorKent Rogers <kar@cray.com>2010-05-19 19:15:41 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-05-19 19:15:41 +0200
commit4095f06769a8fb3ce0878209508a6f129b099d91 (patch)
tree62c4a90141025d1417ee3b83e33c9ba3e775935a /Bugzilla
parent6debb025873ef6df5328a01ed1d4b4848866a91a (diff)
downloadbugzilla-4095f06769a8fb3ce0878209508a6f129b099d91.tar.gz
bugzilla-4095f06769a8fb3ce0878209508a6f129b099d91.tar.xz
Bug 563641: Make bugzilla-queue init script support SuSE
r=mkanat, a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/JobQueue/Runner.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/Bugzilla/JobQueue/Runner.pm b/Bugzilla/JobQueue/Runner.pm
index ef1bb8ef9..8cfc965eb 100644
--- a/Bugzilla/JobQueue/Runner.pm
+++ b/Bugzilla/JobQueue/Runner.pm
@@ -39,7 +39,7 @@ BEGIN { eval "use base qw(Daemon::Generic)"; }
our $VERSION = BUGZILLA_VERSION;
-# Info we need to install/uninstall the daemon on RHEL/Fedora.
+# Info we need to install/uninstall the daemon.
our $chkconfig = "/sbin/chkconfig";
our $initd = "/etc/init.d";
our $initscript = "bugzilla-queue";
@@ -102,7 +102,12 @@ sub gd_usage {
sub gd_can_install {
my $self = shift;
- my $source_file = "contrib/$initscript";
+ my $source_file;
+ if ( -e "/etc/SuSE-release" ) {
+ $source_file = "contrib/$initscript.suse";
+ } else {
+ $source_file = "contrib/$initscript.rhel";
+ }
my $dest_file = "$initd/$initscript";
my $sysconfig = '/etc/sysconfig';
my $config_file = "$sysconfig/$initscript";