Files
napalm-bsd/tests/fixtures/freebsd-vm/sudo_service_status_loop.txt
christianmanivong e8468a292a
CI / test (3.10) (push) Successful in 26s
CI / test (3.11) (push) Successful in 24s
CI / test (3.12) (push) Successful in 26s
CI / test (3.10) (pull_request) Successful in 25s
CI / test (3.11) (pull_request) Successful in 24s
CI / test (3.12) (pull_request) Successful in 25s
feat: packages, services and updates
The write side NetOrk/netork#799 needs, on both drivers.

- Packages: get_packages (FreeBSD `pkg query` with the repository as
  source, nothing on a classic system without pkg; OpenBSD `pkg_info`),
  install_package / uninstall_package as root (`pkg install`/`pkg
  delete`, `pkg_add -I`/`pkg_delete`), names checked before anything is
  sent, a failure raised with what the tool printed.
- Updates: get_available_updates. FreeBSD `pkg upgrade -n`, with
  `security` from VuXML (`pkg audit`: True for a listed package, False for
  any other, None when the audit could not run); OpenBSD `pkg_add -u -n
  -v` (no security verdict). Base-system patches are one `base-system`
  entry, as decided in #799: OpenBSD's `syspatch -c`, and on a classic
  FreeBSD what `freebsd-update` has fetched; on pkgbase the base system is
  packages from FreeBSD-base.
- Services: get_services lists the enabled ones (FreeBSD `service ...
  status` as root, as root-only pidfiles hide daemons otherwise, without
  root when sudo refuses; OpenBSD `rcctl check`), manage_service runs
  start/stop/restart/enable/disable as root and returns success and
  output.

Fixtures recorded on the FreeBSD 15.1 and OpenBSD 7.9 VMs with genuinely
outdated packages (FreeBSD pointed at the latest branch, an OpenBSD
package taken back to its release build). Checked live on both, including
a service restart and installing and removing a package.
2026-10-08 09:59:04 +02:00

33 lines
1.7 KiB
Plaintext

hostid /etc/rc.d/hostid: unknown directive 'status'.
growfs /etc/rc.d/growfs: unknown directive 'status'.
growfs_fstab /etc/rc.d/growfs_fstab: unknown directive 'status'.
hostid_save /etc/rc.d/hostid_save: unknown directive 'status'.
var_run /etc/rc.d/var_run: unknown directive 'status'.
kldxref /etc/rc.d/kldxref: unknown directive 'status'.
devmatch /etc/rc.d/devmatch: unknown directive 'status'.
nuageinit /etc/rc.d/nuageinit: unknown directive 'status'.
cleanvar /etc/rc.d/cleanvar: unknown directive 'status'.
ip6addrctl Prefix Prec Label Use
mixer /etc/rc.d/mixer: unknown directive 'status'.
rctl /etc/rc.d/rctl: unknown directive 'status'.
netif /etc/rc.d/netif: unknown directive 'status'.
devd devd is running as pid 771.
resolv /etc/rc.d/resolv: unknown directive 'status'.
os-release /etc/rc.d/os-release: unknown directive 'status'.
dmesg /etc/rc.d/dmesg: unknown directive 'status'.
gptboot /etc/rc.d/gptboot: unknown directive 'status'.
motd /etc/rc.d/motd: unknown directive 'status'.
newsyslog newsyslog is not running.
virecover /etc/rc.d/virecover: unknown directive 'status'.
cleartmp /etc/rc.d/cleartmp: unknown directive 'status'.
nuageinit_post_net /etc/rc.d/nuageinit_post_net: unknown directive 'status'.
syslogd syslogd is running as pid 1052.
firstboot_pkg_upgrade /usr/local/etc/rc.d/firstboot_pkg_upgrade: unknown directive 'status'.
savecore /etc/rc.d/savecore: unknown directive 'status'.
utx /etc/rc.d/utx: unknown directive 'status'.
qemu-guest-agent qemu_guest_agent is not running.
nuageinit_user_data_script /etc/rc.d/nuageinit_user_data_script: unknown directive 'status'.
cron cron is running as pid 1232.
sshd sshd is running as pid 1282.
bgfsck /etc/rc.d/bgfsck: unknown directive 'status'.