1CDIST-TYPE__SERVICE(7) cdist CDIST-TYPE__SERVICE(7)
2
3
4
6 cdist-type__service - Run action on a system service
7
9 This type allows you to run an action against a system service.
10
12 action Arbitrary parameter passed as action. Usually 'start', 'stop',
13 'reload' or 'restart'.
14
16 None.
17
19 None.
20
22 # Restart nginx service.
23 __service nginx --action restart
24
25 # Stop postfix service.
26 __service postfix --action stop
27
29 Timothée Floure <timothee.floure@ungleich.ch>
30
32 Copyright (C) 2019 Timothée Floure. You can redistribute it and/or mod‐
33 ify it under the terms of the GNU General Public License as published
34 by the Free Software Foundation, either version 3 of the License, or
35 (at your option) any later version.
36
38 ungleich GmbH 2020
39
40
41
42
436.9.4 Dec 21, 2020 CDIST-TYPE__SERVICE(7)