Service

Synopsis

This module facilitates the current status of file in the system. It can mention the status as running or not. Automation is possible. This module specify the configuration of your environment. It is user friendly with Ubuntu and cent OS.

Help command

Help command used to find information about a specified command. For more information about changes to functionality of service we can use this help command. The following screen shot will guide you.

cleopatra Service help
Kevells@corp:/# cleopatra Service help

******************************


  This command allows you to view or modify service

  Service, service

- start
Start a system service
example: cleopatra service start --service-name="apache2"

- stop
Stop a system service
example: cleopatra service restart --service-name="apache2"

- restart
Restart a system service
example: cleopatra service restart --service-name="apache2"

- ensure-running
Ensure a system service is running. If it is already running, dont attempt to start it
If it is not running, start it
example: cleopatra service ensure-running --service-name="apache2"

- is-running
Checks whether a system service is running.
example: cleopatra service is-running --service-name="apache2"

- run-at-reboots
Ensure a system service will auto start on reboots.
example: cleopatra service run-at-reboots --service-name="apache2"

------------------------------
End Help
******************************

Options

Parameters Functions Comment
start Start a system service Cleopatra service start –service-name=”apache2”
stop Stop asystem service Cleopatra service stop –service-name=”apache2”
Restart Restart a system service Cleopatra service restart –service-name=”apache2”
Ensure-running Ensure a system service is running.In case of not running start it else don’t attempt Cleopatra service ensure-running –service-name=”apache2”
Is-running Check whether a system service is running or not running start it else don’t attempt Cleopatra service is-running –service-name=”apache2”
Run-at-reboots Ensure a system service auto start on reboots Cleopatra service run-at-reboots –service-name=”apache2|

Benefits

  • The user can check the system working status at any time.
  • Service provides to exchange data among the system.
  • It permits the sharing of the resources of the machine
  • Service also provides the function of back-up.
  • Service provides a flexible networking environment.
  • This involves coordination of distributed data.
comments powered by Disqus

Edit this document!

This file can be edited directly through the Web. Anyone can update and fix errors in this document with few clicks -- no downloads needed.

  1. Go to Service on GitHub.
  2. Edit files using GitHub's text editor in your web browser (see the 'Edit' tab on the top right of the file)
  3. Fill in the Commit message text box at the bottom of the page describing why you made the changes. Press the Propose file change button next to it when done.
  4. Then click Send a pull request.
  5. Your changes are now queued for review under the project's Pull requests tab on GitHub!

For an introduction to the documentation format please see the reST primer.