summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-11-09 16:44:30 +0000
committerFrancois Pons <fpons@mandriva.com>2000-11-09 16:44:30 +0000
commit9166c569774a7580df1b39ccebc8cc5abd46b1d9 (patch)
tree56966f0ccb8019ad36519c04da6201e7c20c6750 /perl-install
parent33e412623795caec22050c974285ea05d04af170 (diff)
downloaddrakx-9166c569774a7580df1b39ccebc8cc5abd46b1d9.tar
drakx-9166c569774a7580df1b39ccebc8cc5abd46b1d9.tar.gz
drakx-9166c569774a7580df1b39ccebc8cc5abd46b1d9.tar.bz2
drakx-9166c569774a7580df1b39ccebc8cc5abd46b1d9.tar.xz
drakx-9166c569774a7580df1b39ccebc8cc5abd46b1d9.zip
make sure to restart cups when cupsd.conf is modified.
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/printer.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm
index a16ecbe14..3b408d74c 100644
--- a/perl-install/printer.pm
+++ b/perl-install/printer.pm
@@ -325,6 +325,10 @@ sub write_cupsd_conf {
open F, ">$prefix/etc/cups/cupsd.conf";
print F @cupsd_conf;
close F;
+
+ #- restart cups after updating configuration.
+ require run_program;
+ run_program::rooted($prefix, "/etc/rc.d/init.d/cups restart"); sleep 1;
}
sub read_printers_conf {