Difference between revisions of "Openrc"
Jump to navigation
Jump to search
(Created page with "== Service script == === Extra commands === To add additional commands we must tell openrc about it and define a function with such name: <pre> extra_commands="cmd1" descript...") |
(No difference)
|
Revision as of 11:26, May 12, 2020
Service script
Extra commands
To add additional commands we must tell openrc about it and define a function with such name:
extra_commands="cmd1" description_cmd1="do some additional action" cmd1() { ... }
Variables reference
description="DESC TEXT"
- a text which is outputed on/etc/init.d/SCRIPT describe
command.description_CMD="CMD DESC TEXT"
- a text which is outputed on/etc/init.d/SCRIPT describe
command as CMD extra command description.extra_commands="cmd1 cmd2 ..."
- add specified additional functions to a service script.