init-service-restarted

Example:

# Restart the 'apache2' service.
- init-service-restarted:
    name: apache2

Description

Make sure an init service is restarted.

Variables

Name Type Default Description

name

string --

The name of the service. Required

Examples

Example 1

Restart the 'apache2' service.

Code
- init-service-restarted:
    name: apache2
Description

This doesn't enable the apache2 service, but starts it if it isn't already running.

Command-line

frecklecute init-service-restarted --help

Usage: frecklecute init-service-restarted [OPTIONS] SERVICE_NAME

  Make sure an init service is restarted.

Options:
  --help  Show this message and exit.