cdist-type__service(7)

cdist-type__service7

Run action on a system service

Overview

This type allows you to run an action against a system service.

Required parameters

action

Arbitrary parameter passed as action. Usually 'start', 'stop', 'reload' or 'restart'.

Optional parameters

None.

Boolean parameters

None.

Examples

# Restart nginx service.
__service nginx --action restart
# Stop postfix service.
__service postfix --action stop

Copying

Copyright (C) 2019 Timothée Floure. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

Authors

Timothée Floure <[email protected]>

From cdist 7.0.0-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.