aboutsummaryrefslogtreecommitdiffstats
path: root/add-service
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2011-10-30 14:42:38 +0000
committerColin Guthrie <colin@mageia.org>2011-10-30 14:42:38 +0000
commit2ac7b326db9861f0d8547da06e15a320a7147691 (patch)
tree36791dc80a4c118ce65a578dbaccc67f0c1f2c24 /add-service
parent232fc6e1f66745d1c063924bb5f5a78732cac96f (diff)
downloadrpm-helper-2ac7b326db9861f0d8547da06e15a320a7147691.tar
rpm-helper-2ac7b326db9861f0d8547da06e15a320a7147691.tar.gz
rpm-helper-2ac7b326db9861f0d8547da06e15a320a7147691.tar.bz2
rpm-helper-2ac7b326db9861f0d8547da06e15a320a7147691.tar.xz
rpm-helper-2ac7b326db9861f0d8547da06e15a320a7147691.zip
Extend the msec check to systemd socket units as well as services ones
Diffstat (limited to 'add-service')
-rwxr-xr-xadd-service1
1 files changed, 1 insertions, 0 deletions
diff --git a/add-service b/add-service
index 23b0094..96f515c 100755
--- a/add-service
+++ b/add-service
@@ -97,6 +97,7 @@ add_service() {
else
for i in $units; do
[ $i != ${i%.service} ] && ! fgrep -qx ${i%.service} $LIST && continue
+ [ $i != ${i%.socket} ] && ! fgrep -qx ${i%.socket} $LIST && continue
units_to_enable="$units_to_enable $i"
done
fi