Open mapagm opened 9 months ago
Hi there,
My problem is the temperature-machine service stops few seconds after start:
● temperature-machine.service - temperature data logger based on the DS18B20 sensor Loaded: loaded (/lib/systemd/system/temperature-machine.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2023-09-19 12:41:55 CEST; 2s ago Process: 2603 ExecStartPre=/bin/mkdir -p /run/temperature-machine (code=exited, status=0/SUCCESS) Process: 2604 ExecStartPre=/bin/chown pi:pi /run/temperature-machine (code=exited, status=0/SUCCESS) Process: 2605 ExecStartPre=/bin/chmod 755 /run/temperature-machine (code=exited, status=0/SUCCESS) Main PID: 2606 (bash) Tasks: 4 (limit: 1595) CPU: 403ms CGroup: /system.slice/temperature-machine.service ├─2606 bash /usr/share/temperature-machine/bin/temperature-machine └─2633 bash /usr/share/temperature-machine/bin/temperature-machine
and then:
● temperature-machine.service - temperature data logger based on the DS18B20 sensor Loaded: loaded (/lib/systemd/system/temperature-machine.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Tue 2023-09-19 12:42:12 CEST; 6s ago Process: 2603 ExecStartPre=/bin/mkdir -p /run/temperature-machine (code=exited, status=0/SUCCESS) Process: 2604 ExecStartPre=/bin/chown pi:pi /run/temperature-machine (code=exited, status=0/SUCCESS) Process: 2605 ExecStartPre=/bin/chmod 755 /run/temperature-machine (code=exited, status=0/SUCCESS) Process: 2606 ExecStart=/usr/share/temperature-machine/bin/temperature-machine (code=exited, status=1/FAILURE) Main PID: 2606 (code=exited, status=1/FAILURE) CPU: 9.264s
If I start it manually with temperature-machine command it works... What is going on? Please help.
Ok, I had different username. It must be "pi". Now it works.
Hi there,
My problem is the temperature-machine service stops few seconds after start:
and then:
If I start it manually with temperature-machine command it works... What is going on? Please help.