1 <samba:parameter name="shutdown script"
4 advanced="1" developer="1"
5 xmlns:samba="http://samba.org/common">
7 <para><emphasis>This parameter only exists in the HEAD cvs branch</emphasis>
8 This a full path name to a script called by <citerefentry><refentrytitle>smbd</refentrytitle>
9 <manvolnum>8</manvolnum></citerefentry> that should start a shutdown procedure.</para>
11 <para>This command will be run as the user connected to the server.</para>
13 <para>%m %t %r %f parameters are expanded:</para>
17 <para><parameter moreinfo="none">%m</parameter> will be substituted with the
18 shutdown message sent to the server.</para>
22 <para><parameter moreinfo="none">%t</parameter> will be substituted with the
23 number of seconds to wait before effectively starting the
24 shutdown procedure.</para>
28 <para><parameter moreinfo="none">%r</parameter> will be substituted with the
29 switch <emphasis>-r</emphasis>. It means reboot after shutdown
34 <para><parameter moreinfo="none">%f</parameter> will be substituted with the
35 switch <emphasis>-f</emphasis>. It means force the shutdown
36 even if applications do not respond for NT.</para>
40 <para>Shutdown script example:
41 <programlisting format="linespecific">
45 let "time/60"
46 let "time++"
48 /sbin/shutdown $3 $4 +$time $1 &
50 Shutdown does not return so we need to launch it in background.
53 <related>abort shutdown script</related>
54 <value type="default"></value>
55 <value type="example">/usr/local/samba/sbin/shutdown %m %t %r %f</value>