From c4d0ab4062c94c96ed1fd89a9f807c31dd8f5ac2 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 27 Apr 2012 11:32:41 +0000 Subject: [PATCH] man page for EXECUTEALWAYS clause in syncfile for xdcp -F git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12372 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/pods/man1/xdcp.1.pod | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/xCAT-client/pods/man1/xdcp.1.pod b/xCAT-client/pods/man1/xdcp.1.pod index d69145f4f..4547d9fcc 100644 --- a/xCAT-client/pods/man1/xdcp.1.pod +++ b/xCAT-client/pods/man1/xdcp.1.pod @@ -140,20 +140,27 @@ will automatically be run on the node. If the file B is not updated on the node, the B will not be run. Putting the B in the file list to rsync to the node is required -for hierarchical clusters. It is optional for non-hierarchical cluster. +for hierarchical clusters. It is optional for non-hierarchical clusters. + +Another feature is teh B clause in the synclist file. The B will list all the postscripts that you would like to run after the files are sync'd to the nodes. These scripts will run whether or not any files are sync'd to the nodes. The scripts have no special format, but must contain the fully qualified path. + +The scripts must be also added to the file list to rsync to the node for hierarchical clusters. It is optional for non-hierarchical clusters. For example, your rsynclist file may look like this: /tmp/file2 -> /tmp/file2 /tmp/file2.post -> /tmp/file2.post /tmp/file3 -> /tmp/filex /tmp/file3.post -> /tmp/file3.post + /tmp/myscript -> /tmp/myscript # the below are postscripts EXECUTE: /tmp/file2.post /tmp/file3.post + EXECUTEALWAYS: + /tmp/myscript If /tmp/file2 and /tmp/file3 update /tmp/file2 and /tmp/filex on the node, then the postscripts /tmp/file2.post and /tmp/file3.post are automatically run on -the node. +the node. /tmp/myscript will always be run on the node. On Linux rsync always uses ssh remoteshell. On AIX, ssh or rsh is used depending on the site.useSSHonAIX attribute.