cfgfoo

git clone https://orangeshoelaces.net/git/cfgfoo.git

e4a4ad6532e63b442f4621df1e005d1e281081bd

Author: Vasilii Kolobkov on 12/22/2018

Committer: Vasilii Kolobkov on 12/22/2018

Set rc daemon's variables

Stats

aliases      | 3 ++-
steps/rc/set | 7 +++++++
2 files changed, 9 insertions(+), 1 deletion(-)

Patch

diff --git a/aliases b/aliases
index c13d47d..00ea864 100644
--- a/aliases
+++ b/aliases
@@ -14,9 +14,10 @@ alias pf_check="cfgfoo ${CFGFOOPATH}/steps/pf/check -s "
 alias pf_load="cfgfoo ${CFGFOOPATH}/steps/pf/load -s "
 
 alias rc_enable="cfgfoo ${CFGFOOPATH}/steps/rc/enable "
-alias rc_start="cfgfoo ${CFGFOOPATH}/steps/rc/start "
 alias rc_reload="cfgfoo ${CFGFOOPATH}/steps/rc/reload "
 alias rc_restart="cfgfoo ${CFGFOOPATH}/steps/rc/restart "
+alias rc_set="cfgfoo ${CFGFOOPATH}/steps/rc/set "
+alias rc_start="cfgfoo ${CFGFOOPATH}/steps/rc/start "
 
 alias smtpd_check="cfgfoo ${CFGFOOPATH}/steps/smtpd/check -s "
 alias smtpd_newaliases="cfgfoo ${CFGFOOPATH}/steps/smtpd/newaliases "
diff --git a/steps/rc/set b/steps/rc/set
new file mode 100644
index 0000000..387812b
--- /dev/null
+++ b/steps/rc/set
@@ -0,0 +1,7 @@
+step_taken() {
+	false
+}
+
+take_step() {
+	rcctl set "$1" "$2"
+}