Add service -l mock called in FreeBSD10Init info

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
Sonu Saha 2022-04-11 19:37:02 +05:30
parent 88fc2c3e38
commit 606049abf9
2 changed files with 11 additions and 0 deletions

9
test/fixtures/cmd/service-l vendored Normal file
View file

@ -0,0 +1,9 @@
DAEMON
FILESYSTEMS
LOGIN
NETWORKING
SERVERS
automount
sendmail
sshd
sysctl

View file

@ -310,6 +310,8 @@ class MockLoader
# services on freebsd 6+
"service -e" => cmd.call("service-e"),
"service sendmail onestatus" => cmd.call("service-sendmail-onestatus"),
# mock for FreeBSD10Init info
"service -l" => cmd.call("service-l"),
# services for system 5 e.g. centos6, debian 6
"service sshd status" => cmd.call("service-sshd-status"),
'find /etc/rc*.d /etc/init.d/rc*.d -name "S*"' => cmd.call("find-etc-rc-d-name-S"),