summaryrefslogtreecommitdiffstats
path: root/perl-install/printer.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/printer.pm')
-rw-r--r--perl-install/printer.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm
index a5b24ed92..afbb2852c 100644
--- a/perl-install/printer.pm
+++ b/perl-install/printer.pm
@@ -200,8 +200,13 @@ sub SIGHUP_daemon {
} else {
$daemon = $service;
}
- # Send the SIGHUP
- run_program::rooted($prefix, "/usr/bin/killall", "-HUP", $daemon);
+ if ($service eq "cups") {
+ # The current CUPS (1.1.13) dies on SIGHUP, to the normal restart.
+ restart_service($service);
+ } else {
+ # Send the SIGHUP
+ run_program::rooted($prefix, "/usr/bin/killall", "-HUP", $daemon);
+ }
# CUPS needs some time to come up.
if ($service eq "cups") {
wait_for_cups();