summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-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!";
}