add sendmailrestart configuration file
authorivan <ivan>
Thu, 29 Jun 2000 14:02:29 +0000 (14:02 +0000)
committerivan <ivan>
Thu, 29 Jun 2000 14:02:29 +0000 (14:02 +0000)
bin/svc_acct_sm.export
htdocs/docs/config.html

index 380a52e..8a38f5d 100755 (executable)
@@ -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
 #
 # /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);
index c3bfe17..993ce74 100644 (file)
@@ -61,6 +61,7 @@ All further configuration files and directories are located in
         </ul>
     </ul>
   <li>sendmailmachines - Your sendmail machines, one per line.  This enables export of `/etc/virtusertable' and `/etc/sendmail.cw'.
+  <li>sendmailrestart - If defined, the command which is run on sendmail machines after files are copied.
   <li>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.
   <li>shellmachines - Your Linux and System V flavored shell (and mail) machines, one per line.  This enables export of `/etc/passwd' and `/etc/shadow' files.
   <li>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.