From 4235c93fe8eb638510cea376e569fe6843052fef Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Wed, 9 Apr 2003 17:10:44 +0000 Subject: Convert Logon parameters. (This used to be commit 7766cf5e2fff429b4769e1183bce0ce560570efe) --- docs/docbook/smbdotconf/logon/shutdownscript.xml | 75 +++++++++++++++--------- 1 file changed, 46 insertions(+), 29 deletions(-) (limited to 'docs/docbook/smbdotconf/logon/shutdownscript.xml') diff --git a/docs/docbook/smbdotconf/logon/shutdownscript.xml b/docs/docbook/smbdotconf/logon/shutdownscript.xml index ac286393b5..0eaffea747 100644 --- a/docs/docbook/smbdotconf/logon/shutdownscript.xml +++ b/docs/docbook/smbdotconf/logon/shutdownscript.xml @@ -1,30 +1,46 @@ - - shutdown script (G) - This parameter only exists in the HEAD cvs branch - This a full path name to a script called by - smbd(8) that - should start a shutdown procedure. + + + This parameter only exists in the HEAD cvs branch + This a full path name to a script called by smbd + 8 that should start a shutdown procedure. - This command will be run as the user connected to the - server. + This command will be run as the user connected to the server. - %m %t %r %f parameters are expanded - %m will be substituted with the - shutdown message sent to the server. - %t will be substituted with the - number of seconds to wait before effectively starting the - shutdown procedure. - %r will be substituted with the - switch -r. It means reboot after shutdown - for NT. - - %f will be substituted with the - switch -f. It means force the shutdown - even if applications do not respond for NT. + %m %t %r %f parameters are expanded: + + + + %m will be substituted with the + shutdown message sent to the server. + + + + %t will be substituted with the + number of seconds to wait before effectively starting the + shutdown procedure. + + + + %r will be substituted with the + switch -r. It means reboot after shutdown + for NT. + + + + %f will be substituted with the + switch -f. It means force the shutdown + even if applications do not respond for NT. + + + + Default: None. - Default: None. - Example: abort shutdown script = /usr/local/samba/sbin/shutdown %m %t %r %f - Shutdown script example: + Example: abort shutdown script = /usr/local/samba/sbin/shutdown %m %t %r %f + + Shutdown script example: #!/bin/bash @@ -34,9 +50,10 @@ let "time++" /sbin/shutdown $3 $4 +$time $1 & - Shutdown does not return so we need to launch it in background. - +Shutdown does not return so we need to launch it in background. + - See also abort shutdown script. - - + See also + abort shutdown script. + + -- cgit