From 4095f06769a8fb3ce0878209508a6f129b099d91 Mon Sep 17 00:00:00 2001 From: Kent Rogers Date: Wed, 19 May 2010 10:15:41 -0700 Subject: Bug 563641: Make bugzilla-queue init script support SuSE r=mkanat, a=mkanat --- Bugzilla/JobQueue/Runner.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Bugzilla/JobQueue') 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"; -- cgit v1.2.3-24-g4f1b