Template:Daemon enable/testcases

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
This is the template test case page for Template:Daemon enable and its sandbox version. You may have to purge this page to update the examples.

Correct

OpenRC with runlevel
Wiki code
{{Daemon enable|openrc=elogind|runlevel=boot}}
Main version
root #rc-service elogind start
root #rc-update add elogind boot
Sandbox version


OpenRC
Wiki code
{{Daemon enable|openrc=sshd}}
Main version
root #rc-service sshd start
root #rc-update add sshd default
Sandbox version


SystemD
Wiki code
{{Daemon enable|systemd=sshd.service}}
Main version
root #systemctl start sshd.service
root #systemctl enable sshd.service
Sandbox version


Incorrect

No parameter (error message)
Wiki code
{{Daemon enable}}
Main version
{{Daemon start template error}}
Parameter openrc not defined. For correct usage see Daemon start template's documentation on the openrc parameter.
Sandbox version


Both "openrc" and "systemd" parameters (only "openrc" is used)
Wiki code
{{Daemon enable|openrc=sshd|systemd=sshd.service}}
Main version
root #rc-service sshd start
root #rc-update add sshd default
Sandbox version