Silently skip masked services in lsb-base-logging.sh instead of
failing. Initial implementation by Michael Biebl. Closes: #612551
[ Tollef Fog Heen ]
* New upstream release
* Clarify ifupdown instructions in README.Debian somewhat.
+ * Silently skip masked services in lsb-base-logging.sh instead of
+ failing. Initial implementation by Michael Biebl. Closes: #612551
[ Michael Biebl ]
* Bump build dependency on valac to (>= 0.10.3).
esac
service="${prog%.sh}.service"
+
+ # Don't try to run masked services. Don't check for errors, if
+ # this errors, we'll just call systemctl and possibly explode
+ # there.
+ state=$(systemctl -p LoadState show $service 2>/dev/null)
+ [ "$state" = "LoadState=masked" ] && return 0
+
[ "$command" = status ] || log_daemon_msg "$s" "$service"
/bin/systemctl $command "$service"
rc=$?