summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2001-08-08 22:20:07 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2001-08-08 22:20:07 +0000
commitf4172d56b2d7f63c6762516472b7adffb0382754 (patch)
tree59603f3b4eedd63afab8afed96e2b62da9352842
parent8504b48b0d69bf6fb580059506ca2383d902faff (diff)
downloaddrakx-f4172d56b2d7f63c6762516472b7adffb0382754.tar
drakx-f4172d56b2d7f63c6762516472b7adffb0382754.tar.gz
drakx-f4172d56b2d7f63c6762516472b7adffb0382754.tar.bz2
drakx-f4172d56b2d7f63c6762516472b7adffb0382754.tar.xz
drakx-f4172d56b2d7f63c6762516472b7adffb0382754.zip
Corrected init script calls in the (start|stop|restart)_service functions
-rw-r--r--perl-install/printer.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm
index 6b5fe10df..12e11f260 100644
--- a/perl-install/printer.pm
+++ b/perl-install/printer.pm
@@ -84,19 +84,19 @@ sub set_default_spooler ($) {
sub restart_service ($) {
my ($service) = @_;
- run_program::rooted($prefix, "/etc/rc.d/init.d/$service restart")
+ run_program::rooted($prefix, "/etc/rc.d/init.d/$service", "restart")
|| die "Could not restart $service!";
}
sub start_service ($) {
my ($service) = @_;
- run_program::rooted($prefix, "/etc/rc.d/init.d/$service start")
+ run_program::rooted($prefix, "/etc/rc.d/init.d/$service", "start")
|| die "Could not start $service!";
}
sub stop_service ($) {
my ($service) = @_;
- run_program::rooted($prefix, "/etc/rc.d/init.d/$service stop")
+ run_program::rooted($prefix, "/etc/rc.d/init.d/$service", "stop")
|| die "Could not stop $service!";
}