1 <samba:parameter name="shutdown script"
3 advanced="1" developer="1"
4 xmlns:samba="http://samba.org/common">
7 This a full path name to a script called by <citerefentry><refentrytitle>smbd</refentrytitle>
8 <manvolnum>8</manvolnum></citerefentry> that should start a shutdown procedure.</para>
10 <para>This command will be run as the user connected to the server.</para>
12 <para>%m %t %r %f parameters are expanded:</para>
16 <para><parameter moreinfo="none">%m</parameter> will be substituted with the
17 shutdown message sent to the server.</para>
21 <para><parameter moreinfo="none">%t</parameter> will be substituted with the
22 number of seconds to wait before effectively starting the
23 shutdown procedure.</para>
27 <para><parameter moreinfo="none">%r</parameter> will be substituted with the
28 switch <emphasis>-r</emphasis>. It means reboot after shutdown
33 <para><parameter moreinfo="none">%f</parameter> will be substituted with the
34 switch <emphasis>-f</emphasis>. It means force the shutdown
35 even if applications do not respond for NT.</para>
39 <para>Default: <emphasis>None</emphasis>.</para>
41 <para>Example: <command moreinfo="none">shutdown script = /usr/local/samba/sbin/shutdown %m %t %r %f</command></para>
43 <para>Shutdown script example:
44 <programlisting format="linespecific">
48 let "time/60"
49 let "time++"
51 /sbin/shutdown $3 $4 +$time $1 &
53 Shutdown does not return so we need to launch it in background.
56 <para>See also <link linkend="ABORTSHUTDOWNSCRIPT">
57 <parameter moreinfo="none">abort shutdown script</parameter></link>.</para>