]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
bcgroup: Rename 'flash' to 'reload'
authorDhaval Giani <dhaval@linux.vnet.ibm.com>
Thu, 26 Feb 2009 11:53:08 +0000 (11:53 +0000)
committerDhaval Giani <dhaval@linux.vnet.ibm.com>
Thu, 26 Feb 2009 11:53:08 +0000 (11:53 +0000)
LSB specifies that 'reload' is the right initscript parameter to stimulate
daemon to reread its configuration file. I let the 'flash' still working, in
case somebody is used to it, but do not advertise it anywhere.

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@352 4f4bb910-9a46-0410-90c8-c897d4f1cd53

README_daemon
scripts/init.d/cgred

index b19181c22fc0670e0d7dcb878b51b89ffef69aeb..17e4ea8b30eeeede79e602b7f6d247cd0558baaa 100644 (file)
@@ -51,9 +51,9 @@ To stop it,
        /etc/init.d/cgred stop
 The restart (stop,start), condrestart (same as restart, but only if the daemon
 was already started), and status (print whether the daemon is started or
-stopped) commands are also supported.  An additional command, "flash", allows
+stopped) commands are also supported.  An additional command, "reload", allows
 you to reload the configuration file without stopping the daemon.
-       /etc/init.d/cgred flash
+       /etc/init.d/cgred reload
 The cgred script automatically loads configuration from /etc/sysconfig/cgred.conf,
 which is shipped as samples/cgred.conf.  See that file for more information.
 
index e89c13e8f868085b99a27651def1bd284de36f1a..73ca4807f27d85aca07cab1e1a397701214daf6d 100644 (file)
@@ -111,7 +111,7 @@ case "$1" in
                        start
                fi
                ;;
-       flash)
+       reload|flash)
                if [ -f /var/lock/subsys/$servicename ] ; then
                        echo $"Reloading rules configuration..."
                        kill -s 12 `cat ${pidfile}`
@@ -122,7 +122,7 @@ case "$1" in
                fi
                ;;
        *)
-               echo $"Usage: $0 {start|stop|status|restart|condrestart|flash}"
+               echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
                ;;
 esac