diff options
author | Francois Pons <fpons@mandriva.com> | 2000-11-09 16:44:30 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-11-09 16:44:30 +0000 |
commit | 9166c569774a7580df1b39ccebc8cc5abd46b1d9 (patch) | |
tree | 56966f0ccb8019ad36519c04da6201e7c20c6750 /perl-install | |
parent | 33e412623795caec22050c974285ea05d04af170 (diff) | |
download | drakx-backup-do-not-use-9166c569774a7580df1b39ccebc8cc5abd46b1d9.tar drakx-backup-do-not-use-9166c569774a7580df1b39ccebc8cc5abd46b1d9.tar.gz drakx-backup-do-not-use-9166c569774a7580df1b39ccebc8cc5abd46b1d9.tar.bz2 drakx-backup-do-not-use-9166c569774a7580df1b39ccebc8cc5abd46b1d9.tar.xz drakx-backup-do-not-use-9166c569774a7580df1b39ccebc8cc5abd46b1d9.zip |
make sure to restart cups when cupsd.conf is modified.
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/printer.pm | 4 |
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 { |