summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@debian.org>2013-10-27 21:17:22 +0100
committerMichael Stapelberg <michael@stapelberg.de>2013-10-27 21:17:22 +0100
commit78c1ebeca069cdf491454bb9823c5a80e0098d3e (patch)
tree562e96133e8148e499c6e21b4deee63ee2c0c12b
parent409e35fbe39aee732bb3c58b29fa4f6d082a4f6b (diff)
downloadinit-system-helpers-78c1ebeca069cdf491454bb9823c5a80e0098d3e.tar.gz
Don’t print action(s) to stderr, no news are good news
Closes: #723727
-rwxr-xr-xscript/deb-systemd-helper7
1 files changed, 2 insertions, 5 deletions
diff --git a/script/deb-systemd-helper b/script/deb-systemd-helper
index 3adcd9d..41f8ebb 100755
--- a/script/deb-systemd-helper
+++ b/script/deb-systemd-helper
@@ -230,7 +230,6 @@ sub make_systemd_links {
if (! -l $service_link) {
make_path(dirname($service_link));
- print STDERR "ln -s '$service_path' '$service_link'\n" unless $quiet;
symlink($service_path, $service_link) or
error("unable to link $service_link to $service_path: $!");
$changed_sth = 1;
@@ -330,8 +329,8 @@ sub remove_links {
}
next unless -l $link;
- print STDERR "rm '$link'\n" unless $quiet;
- unlink($link);
+ unlink($link) or
+ print STDERR "$0: unable to remove '$link': $!\n";
$changed_sth = 1;
}
@@ -383,7 +382,6 @@ sub mask_service {
}
make_path(dirname($mask_link));
- print STDERR "ln -s '/dev/null' '$mask_link'\n" unless $quiet;
symlink('/dev/null', $mask_link) or
error("unable to link $mask_link to /dev/null: $!");
$changed_sth = 1;
@@ -420,7 +418,6 @@ sub unmask_service {
return;
}
- print STDERR "rm '$mask_link'\n" unless $quiet;
unlink($mask_link) or
error("unable to remove $mask_link: $!");
$changed_sth = 1;