diff options
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | add-service | 2 | ||||
-rwxr-xr-x | del-service | 2 |
3 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,8 @@ + * Silent enable/disable services + 2011-11-03 D Morgan <dmorgan@mageia.org> 0.24.5 * Add support for systemd .path files + 2011-11-03 Colin Guthrie <colin@mageia.org> 0.24.4 * fix up missing file in the Makefile diff --git a/add-service b/add-service index 5747aee..fb17a43 100755 --- a/add-service +++ b/add-service @@ -110,7 +110,7 @@ add_service() { # Actually do enable/disable foo if [ -n "$units_to_enable" ]; then - /bin/systemctl --quiet enable $units_to_enable + /bin/systemctl --quiet enable $units_to_enable >/dev/null fi if [ -n "$srv" -a -f /etc/rc.d/init.d/$srv ]; then /sbin/chkconfig --add $srv diff --git a/del-service b/del-service index 6051808..82c2520 100755 --- a/del-service +++ b/del-service @@ -77,7 +77,7 @@ if [ $num = 0 ]; then fi fi - /bin/systemctl --no-reload --quiet disable $units + /bin/systemctl --no-reload --quiet disable $units >/dev/null [ -n "$srv" ] && /sbin/chkconfig --del $srv # Yes - this is very ugly workaround. chkconfig --del does daemon-reload, |