shutdown parameters in smb.conf.5.sgml

Rafal Szczesniak mimir at spin.ict.pwr.wroc.pl
Mon Sep 3 17:16:09 GMT 2001


Here is my proposal of smb.conf.5.sgml patch for your newly
introduced parameters. It's actually no language corrections.
Rather the ones regarding DocBook formatting.

Why is the cvs version of smb.conf.5.sgml not updated with
these parameters ? I thought you commited this change.


cheers,

Rafal 'Mimir' Szczesniak <mimir at spin.ict.pwr.wroc.pl>   |
*BSD, Linux and Samba                                  /
______________________________________________________/

-------------- next part --------------
--- smb.conf.5.sgml	Sun Aug 26 22:24:34 2001
+++ smb.conf.5.sgml.new	Fri Aug 31 01:17:39 2001
@@ -586,6 +586,7 @@
 	each parameter for details.  Note that some are synonyms.</para>
 
 	<itemizedlist>
+                <listitem><para><link linkend="ABORTSHUTDOWNSCRIPT"><parameter>abort shutdown script</parameter></link></para></listitem>
 		<listitem><para><link linkend="ADDPRINTERCOMMAND"><parameter>add printer command</parameter></link></para></listitem>
 		<listitem><para><link linkend="ADDSHARECOMMAND"><parameter>add share command</parameter></link></para></listitem>
 		<listitem><para><link linkend="ADDUSERSCRIPT"><parameter>add user script</parameter></link></para></listitem>
@@ -700,6 +701,7 @@
 		<listitem><para><link linkend="SECURITY"><parameter>security</parameter></link></para></listitem>
 		<listitem><para><link linkend="SERVERSTRING"><parameter>server string</parameter></link></para></listitem>
 		<listitem><para><link linkend="SHOWADDPRINTERWIZARD"><parameter>show add printer wizard</parameter></link></para></listitem>
+                <listitem><para><link linkend="SHUTDOWNSCRIPT"><parameter>shutdown script</parameter></link></para></listitem>
 		<listitem><para><link linkend="SMBPASSWDFILE"><parameter>smb passwd file</parameter></link></para></listitem>
 		<listitem><para><link linkend="SOCKETADDRESS"><parameter>socket address</parameter></link></para></listitem>
 		<listitem><para><link linkend="SOCKETOPTIONS"><parameter>socket options</parameter></link></para></listitem>
@@ -884,6 +886,25 @@
 	<variablelist>
 	
 
+                <varlistentry>
+                <term><anchor id="ABORTSHUTDOWNSCRIPT">abort shutdown script (G)
+                - ONLY IN HEAD</term>
+                <listitem><para>This a full path name to a script called by
+                <ulink url="smbd.8.html"><command>smbd(8)</command></ulink> that
+                should stop a shutdown procedure issued by the
+                <link linkend="SHUTDOWNSCRIPT"><parameter>shutdown script
+                </parameter></link>.</para>
+
+                <para>This command will be run as user connected to the server.
+                </para>
+
+                <para>Default: <emphasis>None</emphasis>.</para>
+                <para>Example: <command>abort shutdown script = /sbin/shutdown -c</command></para>
+                </listitem>
+                </varlistentry>
+
+
+
 		<varlistentry>
 		<term><anchor id="ADDPRINTERCOMMAND">add printer command (G)</term>
 		<listitem><para>With the introduction of MS-RPC based printing
@@ -6534,6 +6555,62 @@
 		<para>Default :<command>show add printer wizard = yes</command></para>
 		</listitem>
 		</varlistentry>
+
+
+
+
+                <varlistentry>
+                <term><anchor id="SHUTDOWNSCRIPT">shutdown script (G)
+                - ONLY IN HEAD</term>
+                <listitem><para>This a full path name to a script called by
+                <ulink url="smbd.8.html"><command>smbd(8)</command></ulink> that
+                should start a shutdown procedure.</para>
+
+                <para>This command will be run as the user connected to the
+                server.</para>
+ 
+                <para>%m %t %r %f parameters are expanded</para>
+
+                <itemizedlist>
+                       <listitem><para><parameter>%m</parameter> will be substituted
+                       with the shutdown message sent to the server.</para></listitem>
+
+                       <listitem><para><parameter>%t</parameter> will be substituted
+                       with the number of seconds to wait before actually starting
+                       the shutdown procedure.</para></listitem>
+
+                       <listitem><para><parameter>%r</parameter> will be substituted
+                       with the switch <parameter>-r</parameter>. It means reboot after
+                       shutdown for NT.</para></listitem>
+
+                       <listitem><para><parameter>%f</parameter> will be substituted
+                       with the switch <parameter>-f</parameter>. It means force the
+                       shutdown even if applications do not respond for NT.</para>
+                       </listitem>
+                </itemizedlist>
+
+                <para>Default: <emphasis>None</emphasis>.</para>
+                <para>Example: <command>shutdown script = /usr/local/samba/sbin/shutdown %m %t %r %f</command></para>
+
+                <para>Shutdown script example:</para>
+
+                <para><programlisting>
+                #!/bin/bash
+               
+                $time=0
+                let "time/60"
+                let "time++"
+
+                /sbin/shutdown $3 $4 +$time $1 &
+                </programlisting></para>
+
+                <para>Shutdown does not return so we need to launch it in background.
+                </para>
+
+                <para>See also <link linkend="ABORTSHUTDOWNSCRIPT"><parameter>abort
+		shutdown script</parameter></link>.</para>
+                </listitem>
+                </varlistentry>
 
 
 


More information about the samba-technical mailing list