diff options
author | ivan <ivan> | 2000-06-29 14:02:29 +0000 |
---|---|---|
committer | ivan <ivan> | 2000-06-29 14:02:29 +0000 |
commit | f30825464928625a2980e9286a28ea7ab91dad64 (patch) | |
tree | 076c9af819d6fda66235eef1e88055c63eb46c2b /bin | |
parent | 6e05f9c154f3cac80969c9a8f266b3d5b041b463 (diff) |
add sendmailrestart configuration file
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/svc_acct_sm.export | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/svc_acct_sm.export b/bin/svc_acct_sm.export index 380a52eff..8a38f5d54 100755 --- a/bin/svc_acct_sm.export +++ b/bin/svc_acct_sm.export @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: svc_acct_sm.export,v 1.3 2000-06-12 08:37:56 ivan Exp $ +# $Id: svc_acct_sm.export,v 1.4 2000-06-29 14:02:29 ivan Exp $ # # Create and export config files for sendmail, qmail # @@ -42,7 +42,10 @@ # /var/spool/freeside/conf and sendmail updates ivan@sisd.com 98-aug-14 # # $Log: svc_acct_sm.export,v $ -# Revision 1.3 2000-06-12 08:37:56 ivan +# Revision 1.4 2000-06-29 14:02:29 ivan +# add sendmailrestart configuration file +# +# Revision 1.3 2000/06/12 08:37:56 ivan # sendmail fix from Jeff Finucane # # Revision 1.2 1998/12/10 07:23:17 ivan @@ -195,6 +198,10 @@ foreach $sendmailmachine (@sendmailmachines) { " )" ) == 0 or die "ssh error: $!"; + if ( $conf->config('sendmailrestart') ) { + ssh("root\@$sendmailmachine", $conf->config('sendmailrestart') ) + == 0 or die "ssh error: $!"; + } } my($qmailmachine); |