X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=bin%2Fsvc_acct_sm.export;h=8a38f5d54529b288de05e4914cc00bd2f3f28380;hp=380a52efff318c7613f49012f3686363d2ace700;hb=f30825464928625a2980e9286a28ea7ab91dad64;hpb=6e05f9c154f3cac80969c9a8f266b3d5b041b463 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);