Eventscripts: 50.samba needs null service_reconfigure() function.
authorMartin Schwenke <martin@meltin.net>
Mon, 23 May 2011 05:37:09 +0000 (15:37 +1000)
committerMartin Schwenke <martin@meltin.net>
Thu, 11 Aug 2011 00:46:57 +0000 (10:46 +1000)
Samba doesn't need to do anything for configuration changes.  It will
notice configuration changes and reload automatically.

Signed-off-by: Martin Schwenke <martin@meltin.net>
config/events.d/50.samba

index bee4f18f86f42c8b1fc2e4f23d66ffc6a947ece7..25e7f7596c7dabaa5243640bb1d294896514ff59 100755 (executable)
@@ -113,6 +113,12 @@ service_stop ()
        return 0
 }
 
+service_reconfigure ()
+{
+    # Samba automatically reloads config - no restart needed.
+    :
+}
+
 # set default samba cleanup period - in minutes
 [ -z "$SAMBA_CLEANUP_PERIOD" ] && {
     SAMBA_CLEANUP_PERIOD=10