crw-rw---- 1 root dialout 204, 64 Jan 15 21:31 /dev/ttyAMA0
usermod -a -G dialout knxd
KNXD_OPTS="--trace=65535 --error=255 --eibaddr 0.0.254 --client-addrs=0.0.200:10 --GroupCache --Discovery --Tunnelling --Routing --Server --layer2=ft12:/dev/ttyAMA0"
#
# knxd rsyslog
#
# Catch all knxd generated syslog messages and redirect to a dedicated file
#
if $programname == "knxd" then {
# collect all matching messages in one dedicated file
action(type="omfile" file="/var/log/knx/knxd.log")
# we do not want to have this kind of logs in other log files
stop
}
#
# Rotate logfiles of knxd generated by systemd filter
#
/var/log/knx/knxd.log {
compress
daily
dateext
delaycompress
missingok
notifempty
# keep old logs for ~ 100 years :-)
rotate 36500
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
(I've got a bad habit of saving unfinished emails in the drafts folder and then forgetting about them. I found this one while cleaning it up and thought it might still be informative.)
On Sunday 15 January 2017 13:27:01 aj.hu...@gmail.com wrote:
> Hi!
Hi,
[...]
> Things I needed to resolve during install:
>
> As a user of the Selfbus Raspberry FT1.2 hat I use serial interface on
> /dev/ttyAMA0 (*--layer2=ft12:/dev/ttyAMA0*).
> Permissions of the device are as follows:
> crw-rw---- 1 root dialout 204, 64 Jan 15 21:31 /dev/ttyAMA0
>
> So I had to add user knxd (generated during dpkg install) to the group
> dialout:
> usermod -a -G dialout knxd
It seems to me like this could be fixed slightly more elegantly with a udev
rule that extends the ACL of the device allowing the knxd user access (akin to how systemd-logind adds ACLs dynamically at run-time, only this would be at device node creation time). Thoughts?
Addendum just now, almost a year later: I just checked and it looks like systemd-tmpfiles can set ACLs, so maybe it would make sense to extend the tmpfiles.d file? Or maybe this sort of thing is too site-specific?
[...]
Greetings
--
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup