Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service stops after few seconds #114

Open
mapagm opened this issue Sep 19, 2023 · 1 comment
Open

service stops after few seconds #114

mapagm opened this issue Sep 19, 2023 · 1 comment

Comments

@mapagm
Copy link

mapagm commented Sep 19, 2023

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.

@mapagm
Copy link
Author

mapagm commented Sep 20, 2023

Ok, I had different username. It must be "pi". Now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant