aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDexter Morgan <dmorgan@mageia.org>2012-01-19 15:13:00 +0000
committerDexter Morgan <dmorgan@mageia.org>2012-01-19 15:13:00 +0000
commitfce915361aecd3be1fe7b9d21c7ad5115637a544 (patch)
tree489456ccd8bb878da1f7bc089f5aa96fa8001052
parenta0fcbed0d04a937f5bd9a24017637479e0fa6a5f (diff)
downloadrpm-helper-fce915361aecd3be1fe7b9d21c7ad5115637a544.tar
rpm-helper-fce915361aecd3be1fe7b9d21c7ad5115637a544.tar.gz
rpm-helper-fce915361aecd3be1fe7b9d21c7ad5115637a544.tar.bz2
rpm-helper-fce915361aecd3be1fe7b9d21c7ad5115637a544.tar.xz
rpm-helper-fce915361aecd3be1fe7b9d21c7ad5115637a544.zip
Silent enable/disable services
-rw-r--r--NEWS3
-rwxr-xr-xadd-service2
-rwxr-xr-xdel-service2
3 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 32944da..e74ba07 100644
--- a/NEWS
+++ b/NEWS
@@ -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,