Commit Graph

8 Commits

Author SHA1 Message Date
Jan Friesse
fbbb3f01cb Handle "nocluster" kernel parameter in init script
Init script checks kernel parameters and refuses to start corosync if
nocluster parameter exist on boot time. The init script will
continue to work as expected from console/tty after boot.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
2011-01-31 14:27:36 +01:00
Steven Dake
71c2702424 change shutdown priority to 80 in generic.in.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3039 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-09-03 17:04:42 +00:00
Steven Dake
e1bbafcaeb Patch from Keisuke Mori to add proper dependeny on syslog to corosync init
script.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3038 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-09-03 15:42:22 +00:00
Jan Friesse
d6cd3b6b34 Check that Corosync was not runned by cman
Patch fixes init script so it's tested, if corosync was runned
by cman or not. If so, it refuses to stop Corosync.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3011 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-08-02 12:38:19 +00:00
Jan Friesse
93fb44ed0f Allow running only one instance of Corosync
Patch makes Corosync more compliant with common practices
for writing daemon. It creates pid file (usually 
/var/run/corosync.pid) and flocks it. So only one instance
of Corosync can be executed now.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@3010 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-08-02 12:36:20 +00:00
Andrew Beekhof
e725dd3edd Correctly determine current state in init script
If two stop actions are ever performed simultaneously, then neither will terminate.
With the default implementaiton of __pids_pidof, the status() function from 
/etc/init.d/functions incorrectly thinks the other stop action is a real 
corosync process.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2639 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-15 11:52:48 +00:00
Fabio M. Di Nitto
60f6e2f299 Fix stop regression
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2557 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-30 21:28:30 +00:00
Fabio M. Di Nitto
dac5df7dd8 Clean up init scripts and make a single generic one
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2554 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-30 18:56:28 +00:00