aboutsummaryrefslogtreecommitdiff
path: root/src/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/systemctl11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/sbin/systemctl b/src/sbin/systemctl
index 3f13c9d..0e00b10 100755
--- a/src/sbin/systemctl
+++ b/src/sbin/systemctl
@@ -376,8 +376,15 @@ debuglev 5 && {
esac
# list of actions
- echo "Need to perform these commands:"
- echo "${actionlist}"
+ if test -n "${actionlist}" ;
+ then
+ debuglev 1 && ferror "Full list: ${actionlist}"
+ printf "%s" "${actionlist}" | tr ';' '\n' | while read thisaction ;
+ do
+ debuglev 5 && ferror "${thisaction}"
+ eval "${thisaction}"
+ done
+ fi
#} | tee -a ${logfile}
# EMAIL LOGFILE
bgstack15