Skip to content

Commit 45acd89

Browse files
committed
Add OpenRC support to server.service operation.
1 parent 18092d6 commit 45acd89

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyinfra/operations/server.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
bsdinit,
3737
dnf,
3838
files,
39+
openrc,
3940
pacman,
4041
pkg,
4142
systemd,
@@ -467,6 +468,9 @@ def service(
467468
if host.get_fact(Which, command='systemctl'):
468469
service_operation = systemd.service
469470

471+
elif host.get_fact(Which, command='rc-service'):
472+
service_operation = openrc.service
473+
470474
elif host.get_fact(Which, command='initctl'):
471475
service_operation = upstart.service
472476

0 commit comments

Comments
 (0)