cfgfoo

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

cb2ad13c28f2c60177c2d98a08f6afd1df85ac71

Author: Vasilii Kolobkov on 12/19/2018

Committer: Vasilii Kolobkov on 12/19/2018

Restart rc daemons

Stats

aliases          | 1 +
steps/rc/restart | 7 +++++++
2 files changed, 8 insertions(+)

Patch

diff --git a/aliases b/aliases
index 8fe3956..c13d47d 100644
--- a/aliases
+++ b/aliases
@@ -16,6 +16,7 @@ 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 smtpd_check="cfgfoo ${CFGFOOPATH}/steps/smtpd/check -s "
 alias smtpd_newaliases="cfgfoo ${CFGFOOPATH}/steps/smtpd/newaliases "
diff --git a/steps/rc/restart b/steps/rc/restart
new file mode 100644
index 0000000..fe8a225
--- /dev/null
+++ b/steps/rc/restart
@@ -0,0 +1,7 @@
+step_taken() {
+	false
+}
+
+take_step() {
+	rcctl restart "$1"
+}