Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

clusvcadm(8) [debian man page]

clusvcadm(8)						       Red Hat Cluster Suite						      clusvcadm(8)

NAME
clusvcadm - Cluster User Service Administration Utility SYNOPSIS
clusvcadm [-d <service> ] [-e <service> ] [-l] [-u] [-S] [-m <member> ] [-r <service> ] [-R <service> ] [-M <service> ] [-Z <service> ] [-U <service> ] [-s <service> ] [-v] DESCRIPTION
The clusvcadm command allows an administrator to enable, disable, relocate, and restart user services in a cluster. In order to perform cluster service operations, the cluster daemons must be running (and have quorum) on the member system on which the command is invoked. OPTIONS
-d <service> Stops and disables the user service named service -e <service> Enables and starts the user service named service -l Lock services in preparation for cluster shutdown. This should only be used if the administrator intends to perform a global, clus- ter wide shutdown. This prevents services from starting (but not stopping, like -Z does). Once the cluster quorum is dissolved, this state is reset. If a new instance of rgmanager boots while others are locked, the behavior is undefined. -u Unlock resource group managers. This allows services to start again. -S Display whether the resource group managers are locked or not. This can be used to verify the correct operation of the -l and -u options, but is only useful for debugging. -m <member> When used in conjunction with either the -e or -r options, this specifies the preferred target member on which to start the service. -r <service> Relocates the user service named service to another cluster member. -R <service> Restarts the user service named service on the cluster member on which it is currently running. -M <service> Use a special "migration" operation to move the user service named service to another cluster member. Currently, this is only use- ful for virtual machines. Use of migration usually requires special configuration of the local virtual machine manager in order to work correctly. -Z <service> Freezes the service named service on the cluster member on which it is currently running. This will prevent status checks of the service as well as failover in the event the node fails or rgmanager is stopped. -U <service> Unfreezes the user service named service on the cluster member on which it is currently running. This will re-enable status checks. -s <service> Stops the service named service until a member transition or until it is enabled again. -v Display version information and exit. NOTES
Executing -U (unfreeze) on a service which was frozen in the started state while the service owner is offline results in an undefined (and possibly dangerous) condition. Manually ensure all resources are clear before doing this. SEE ALSO
clustat(8) Jan 2005 clusvcadm(8)

Check Out this Related Man Page

Munin::Node::Service(3pm)				User Contributed Perl Documentation				 Munin::Node::Service(3pm)

NAME
Munin::Node::Service - Methods related to handling of Munin services SYNOPSIS
my $services = Munin::Node::Service->new(timeout => 30); $services->prepare_plugin_environment; if ($services->is_a_runnable_service($file_name)) { $services->fork_service($file_name); } METHODS
new my $services = Munin::Node::Service->new(%args); Constructor. All arguments are optional. Valid arguments are: "servicedir" The directory that will be searched for services. "defuser", "defgroup" The default uid and gid that services will run as. Service-specific user and group directives (as set by the service configuration files) will override this. "timeout" The default timeout for services. Services taking longer than this to run will be killed. Service-specific timeouts will (as set in the service configuration files) will override this value. is_a_runnable_service my $bool = $services->is_a_runnable_service($file_name); Runs miscellaneous tests on $file_name in the service directory, to try and establish whether it is a runnable service. list my @services = $services->list; Returns a list of all the runnable services in the directory. prepare_plugin_environment $services->prepare_plugin_environment(@services); Carries out various tasks that plugins require before being run, such as loading service configurations and exporting common environment variables. export_service_environment $services->export_service_enviromnent($service); Exports all the environment variables specific to service $service. change_real_and_effective_user_and_group $service->change_real_and_effective_user_and_group($service); Changes the current process' effective group and user IDs to those specified in the configuration, or the default user or group otherwise. Also changes the real group and user IDs if the operating system supports it. On failure, causes the process to exit. exec_service $service->exec_service($service, [$argument]); Replaces the current process with an instance of service $service in $directory, running with the correct environment and privileges. This function never returns. The process will exit(2) if the service to be run failed the paranoia check. fork_service $result = $service->fork_service($service, [$argument]); Identical to exec_service(), except it runs the service in a subprocess. If the service takes longer than the timeout, it will be terminated. Returns a hash reference containing (among other things) the service's output and exit value. (See documentation for run_as_child() in Munin::Node::Service for a comprehensive description.) perl v5.14.2 2013-11-12 Munin::Node::Service(3pm)
Man Page