Skip to content

grlx.ingredients.service

The service ingredient handles the management of system services. Currently, this only supports systemd services.

service.masked

Checks if a service is masked and masks it if it is not

Parameters

parametertyperequireddescription
namestringyesthe name of the service unit
userModeboolnoto use service in user mode, false by default
service.masked:
  - name: ssd-backup
  - userMode: true

service.unmasked

Checks if a service is unmasked and unmasks it if it is not

Parameters

parametertyperequireddescription
namestringyesthe name of the service unit
userModeboolnoto use service in user mode, false by default
service.unmasked:
  - name: ssd-backup
  - userMode: true

service.running

Checks if a service is running and starts it if it is not

Parameters

parametertyperequireddescription
namestringyesthe name of the service unit
userModeboolnoto use service in user mode, false by default
service.running:
  - name: docker.service
  - userMode: false

service.stopped

Checks if a service is stopped and stops it if it is not

Parameters

parametertyperequireddescription
namestringyesthe name of the service unit
userModeboolnoto use service in user mode, false by default
service.stopped:
  - name: docker.service
  - userMode: false

service.enabled

Checks if a service is enabled and enables it if it is not

Parameters

parametertyperequireddescription
namestringyesthe name of the service unit
userModeboolnoto use service in user mode, false by default
service.enabled:
  - name: cronie.service
  - userMode: false

service.disabled

Checks if a service is disabled and disables it if it is not

Parameters

parametertyperequireddescription
namestringyesthe name of the service unit
userModeboolnoto use service in user mode, false by default
service.disabled:
  - name: cronie.service
  - userMode: false

service.restarted

Restarts a service

Parameters

parametertyperequireddescription
namestringyesthe name of the service unit
userModeboolnoto use service in user mode, false by default
service.restarted:
  - name: cronie.service
  - userMode: false