Hey there! First let me say thanks a lot for this useful script.
I just found a minor issue while following systemlogs with journalctl -fe
Mar 31 20:21:01 karotte openvpn[6961]: /etc/openvpn/update-systemd-resolved tun0 1500 1556 some.company.ip.v4 255.255.255.0 init
Mar 31 20:21:01 karotte openvpn[6961]: + logger -s --id=6971 -t update-systemd-resolved -p user.info -- 'Link '\''tun0'\'' coming up'
Mar 31 20:21:01 karotte openvpn[6961]: logger: send message failed: Operation not permitted
Mar 31 20:21:01 karotte openvpn[6961]: <14>Mar 31 20:21:01 update-systemd-resolved[6971]: Link 'tun0' coming up
i used "set -x" to get some more debugging infos during the logger run.
While this fails when executed from within update-systemd-resolved i works when executed from the commandline
Console:
i|karotte ~ # logger -s --id=6971 -t update-systemd-resolved -p user.info -- 'Link '\''tun0'\'' coming up'
<14>Mar 31 20:31:40 update-systemd-resolved[6971]: Link 'tun0' coming up
Journal:
Mar 31 20:31:40 karotte update-systemd-resolved[7075]: Link 'tun0' coming up
Changing the script like shown below gets rid of the error
diff --git a/update-systemd-resolved b/update-systemd-resolved
index 422d105..db2cc13 100755
--- a/update-systemd-resolved
+++ b/update-systemd-resolved
@@ -32,7 +32,7 @@ DBUS_NODE="/org/freedesktop/resolve1"
SCRIPT_NAME="${BASH_SOURCE[0]##*/}"
log() {
- logger -s --id="$$" -t "$SCRIPT_NAME" "$@"
+ logger -s -t "$SCRIPT_NAME" "$@"
}
This happens using systemd-233-r1 on gentoo linux
Any ideas what might be going on here?
Hey there! First let me say thanks a lot for this useful script.
I just found a minor issue while following systemlogs with journalctl -fe
i used "set -x" to get some more debugging infos during the logger run.
While this fails when executed from within update-systemd-resolved i works when executed from the commandline
Console:
Journal:
Changing the script like shown below gets rid of the error
This happens using systemd-233-r1 on gentoo linux
Any ideas what might be going on here?