From: ivan Date: Thu, 29 Jun 2000 14:02:29 +0000 (+0000) Subject: add sendmailrestart configuration file X-Git-Tag: freeside_1_3_0~104 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=f30825464928625a2980e9286a28ea7ab91dad64 add sendmailrestart configuration file --- 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); diff --git a/htdocs/docs/config.html b/htdocs/docs/config.html index c3bfe17f3..993ce74a9 100644 --- a/htdocs/docs/config.html +++ b/htdocs/docs/config.html @@ -61,6 +61,7 @@ All further configuration files and directories are located in
  • sendmailmachines - Your sendmail machines, one per line. This enables export of `/etc/virtusertable' and `/etc/sendmail.cw'. +
  • sendmailrestart - If defined, the command which is run on sendmail machines after files are copied.
  • shellmachine - A single machine with user home directories mounted. This enables home directory creation, renaming and archiving/deletion. In conjunction with `qmailmachines', it also enables `.qmail-extension' file maintenance.
  • shellmachines - Your Linux and System V flavored shell (and mail) machines, one per line. This enables export of `/etc/passwd' and `/etc/shadow' files.
  • shells - Legal shells (think /etc/shells). You probably want to `cut -d: -f7 /etc/passwd | sort | uniq' initially so that importing doesn't fail with `Illegal shell' errors, then remove any special entries afterwords. A blank line specifies that an empty shell is permitted.