implement manage_service for BSDs
Bug #1990070 reported by
Mina Galić
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Wishlist
|
Mina Galić |
Bug Description
Distro.
SysV based BSDs and OpenRC based Alpine are left out.
on BSDs, services are enabled in /etc/rc.conf (on FreeBSD, this can be done with sysrc(8) https:/
summary: |
- implement manage_service for BSDs and Alpine + implement manage_service for BSDs |
description: | updated |
Changed in cloud-init: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Changed in cloud-init: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
FreeBSD's service implements enable, disable and enabled.
They are not documented in the man page.
Nothing needs to be done here.
NetBSD has a service command: https:/ /man.netbsd. org/service. 8
that doesn't implement enable/enabled and disable.
Not just according to the man page.
It also doesn't have a sysrc wrapper for editing rc.conf
We can use bsd utils rc.conf update function to enable/disable services.
OpenBSD has no service wrapper, and no sysrc wrapper
We can also use bsd utils rc.conf update function here to enable/disable services.
Its /etc/rc.d/<service> also don't seem to have a status command, however, stop and start are idempotent, so you can use those to, if you know what you're expecting