diff options
author | Alexander Bokovoy <ab@samba.org> | 2003-04-09 17:10:44 +0000 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2003-04-09 17:10:44 +0000 |
commit | 4235c93fe8eb638510cea376e569fe6843052fef (patch) | |
tree | 49e2d5e78357322ed837ab931526fb18dca9ca4f /docs/docbook/smbdotconf/logon/shutdownscript.xml | |
parent | 1f04eb2e2617ac05974c21bdac9ebb4781b5a9d9 (diff) | |
download | samba-4235c93fe8eb638510cea376e569fe6843052fef.tar.gz samba-4235c93fe8eb638510cea376e569fe6843052fef.tar.bz2 samba-4235c93fe8eb638510cea376e569fe6843052fef.zip |
Convert Logon parameters.
(This used to be commit 7766cf5e2fff429b4769e1183bce0ce560570efe)
Diffstat (limited to 'docs/docbook/smbdotconf/logon/shutdownscript.xml')
-rw-r--r-- | docs/docbook/smbdotconf/logon/shutdownscript.xml | 75 |
1 files changed, 46 insertions, 29 deletions
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 @@ -<samba:parameter xmlns:samba="http://samba.org/common"> - <term><anchor id="SHUTDOWNSCRIPT"/>shutdown script (G)</term> - <listitem><para><emphasis>This parameter only exists in the HEAD cvs branch</emphasis> - This a full path name to a script called by - <ulink url="smbd.8.html"><command moreinfo="none">smbd(8)</command></ulink> that - should start a shutdown procedure.</para> +<samba:parameter name="shutdown script" + context="G" + advanced="1" developer="1" + xmlns:samba="http://samba.org/common"> +<listitem> + <para><emphasis>This parameter only exists in the HEAD cvs branch</emphasis> + This a full path name to a script called by <citerefentry><refentrytitle>smbd</refentrytitle> + <manvolnum>8</manvolnum></citerefentry> that should start a shutdown procedure.</para> - <para>This command will be run as the user connected to the - server.</para> + <para>This command will be run as the user connected to the server.</para> - <para>%m %t %r %f parameters are expanded</para> - <para><parameter moreinfo="none">%m</parameter> will be substituted with the - shutdown message sent to the server.</para> - <para><parameter moreinfo="none">%t</parameter> will be substituted with the - number of seconds to wait before effectively starting the - shutdown procedure.</para> - <para><parameter moreinfo="none">%r</parameter> will be substituted with the - switch <emphasis>-r</emphasis>. It means reboot after shutdown - for NT. - </para> - <para><parameter moreinfo="none">%f</parameter> will be substituted with the - switch <emphasis>-f</emphasis>. It means force the shutdown - even if applications do not respond for NT.</para> + <para>%m %t %r %f parameters are expanded:</para> + + <itemizedlist> + <listitem> + <para><parameter moreinfo="none">%m</parameter> will be substituted with the + shutdown message sent to the server.</para> + </listitem> + + <listitem> + <para><parameter moreinfo="none">%t</parameter> will be substituted with the + number of seconds to wait before effectively starting the + shutdown procedure.</para> + </listitem> + + <listitem> + <para><parameter moreinfo="none">%r</parameter> will be substituted with the + switch <emphasis>-r</emphasis>. It means reboot after shutdown + for NT.</para> + </listitem> + + <listitem> + <para><parameter moreinfo="none">%f</parameter> will be substituted with the + switch <emphasis>-f</emphasis>. It means force the shutdown + even if applications do not respond for NT.</para> + </listitem> + </itemizedlist> + + <para>Default: <emphasis>None</emphasis>.</para> - <para>Default: <emphasis>None</emphasis>.</para> - <para>Example: <command moreinfo="none">abort shutdown script = /usr/local/samba/sbin/shutdown %m %t %r %f</command></para> - <para>Shutdown script example: + <para>Example: <command moreinfo="none">abort shutdown script = /usr/local/samba/sbin/shutdown %m %t %r %f</command></para> + + <para>Shutdown script example: <programlisting format="linespecific"> #!/bin/bash @@ -34,9 +50,10 @@ let "time++" /sbin/shutdown $3 $4 +$time $1 & </programlisting> - Shutdown does not return so we need to launch it in background. - </para> +Shutdown does not return so we need to launch it in background. +</para> - <para>See also <link linkend="ABORTSHUTDOWNSCRIPT"><parameter moreinfo="none">abort shutdown script</parameter></link>.</para> - </listitem> - </samba:parameter> + <para>See also <link linkend="ABORTSHUTDOWNSCRIPT"> + <parameter moreinfo="none">abort shutdown script</parameter></link>.</para> +</listitem> +</samba:parameter> |