Skip to content

Fix systemd service startup hang (#72) - #87

Open
y-vectorfield wants to merge 1 commit into
sunfounder:1.3.xfrom
y-vectorfield:fix_issue#72_systemd_service_issues
Open

Fix systemd service startup hang (#72)#87
y-vectorfield wants to merge 1 commit into
sunfounder:1.3.xfrom
y-vectorfield:fix_issue#72_systemd_service_issues

Conversation

@y-vectorfield

Copy link
Copy Markdown

Description

Fixes #72

Problem

systemctl restart pironman5.service hangs on Ubuntu 24.04 (Noble Numbat)
due to After=multi-user.target causing global startup transaction deadlock.

Changes

  • Change After=multi-user.target to After=network-online.target
    to prevent global startup transaction deadlock
  • Change Type=simple to properly manage long-running process
    with child processes (influxd, dbus-daemon)
  • Add Restart=on-failure for automatic recovery on failure
  • Add StandardOutput/StandardError=journal for better logging

Testing

Verified on Ubuntu 24.04 LTS with:

  • systemctl restart pironman5.service completes successfully
  • Service becomes active (running) with expected child processes
  • Child processes (influxd, dbus-daemon) properly managed by systemd

@y-vectorfield

Copy link
Copy Markdown
Author

@cavonlee , please review my PR. If there are not any problems, please approve and merge my modifications.

@y-vectorfield

Copy link
Copy Markdown
Author

@kyuuinochi , please review my PR. If there are not any problems, please approve and merge my modifications.

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

Successfully merging this pull request may close these issues.

Piroman5 Service does not work correct on 24.04.4 LTS

1 participant