Skip to content

Commit 0b5245c

Browse files
authored
Merge pull request #197 from marcosfrm/silence-systemctl
DEB/RPM: silence systemctl kill error output
2 parents 7ae8275 + 6cbd656 commit 0b5245c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/debian/preinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ case "$1" in
77
install)
88
# old v7 init script is broken and does not stop when told so
99
if [ -e /etc/init.d/FAHClient ]; then
10-
systemctl kill FAHClient || true
10+
systemctl kill FAHClient 2>/dev/null || true
1111
fi
1212
# Create group if it does not exist
1313
if ! getent group $NAME >/dev/null; then

install/rpm/pre

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
if [ $1 -eq 1 ]; then
33
# old v7 init script is broken and does not stop when told so
44
if [ -e /etc/init.d/FAHClient ]; then
5-
systemctl kill FAHClient || true
5+
systemctl kill FAHClient 2>/dev/null || true
66
fi
77

88
# create group if it does not exist

0 commit comments

Comments
 (0)