hardbyte / hardbyte/python-can

can.logger script doesn't work when started from systemd

未关闭
#896 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
1.6k
派生
697
PR 合并指标
30 天内没有已合并 PR

描述

Hi,

I use a systemd service to log the socketcan can0 with can.logger script.
I use a Unit file that call the script:

...
[Service]
Type=simple
ExecStart=python -m can.logger -f /home/admin/can-logs/test.blf -v -c can0 -i socketcan
...

This script works perfectly when called from the linux shell, but when I start it from the service, the log file is created in /home/admin/can-logs but stay empty.
What could be wrong ? is python-can not able to handle socketcan from systemd service ?

Thanks for your help,

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。