source4 smbd process: pass the fatal flag to terminate
[bbaumbach/samba-autobuild/.git] / docs-xml / smbdotconf / logon / shutdownscript.xml
index 7e8ec8fd3aaa2c5030d2e9d2f41b9ff5258f6897..e66ed92193f51ab066da3978b8993e4465a58d2f 100644 (file)
@@ -1,7 +1,6 @@
 <samba:parameter name="shutdown script"
                  context="G"
                                 type="string"
-                 advanced="1" developer="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>This a full path name to a script called by 
@@ -9,8 +8,8 @@
         <manvolnum>8</manvolnum></citerefentry> that should 
        start a shutdown procedure.</para>
 
-       <para>If the connected user posseses the <constant>SeRemoteShutdownPrivilege</constant>,
-       right, this command will be run as user.</para>
+       <para>If the connected user possesses the <constant>SeRemoteShutdownPrivilege</constant>,
+       right, this command will be run as root.</para>
 
        <para>The %z %t %r %f variables are expanded as follows:</para>
        
        <para>Shutdown script example:
 <programlisting format="linespecific">
 #!/bin/bash
-               
-$time=0
-let &quot;time/60&quot;
-let &quot;time++&quot;
+
+time=$2
+let time=&quot;${time} / 60&quot;
+let time=&quot;${time} + 1&quot;
 
 /sbin/shutdown $3 $4 +$time $1 &amp;
+
 </programlisting>
         Shutdown does not return so we need to launch it in background.
        </para>