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

Change type of systemd.service #948

Merged

Conversation

DimitriPapadopoulos
Copy link
Collaborator

Change to notify:

Behavior of notify is similar to exec; however, it is expected that the service sends a notification message via sd_notify(3) or an equivalent call when it has finished starting up. systemd will proceed with starting follow-up units after this notification message has been sent.

If notify doesn't work, we could fall back to exec:

The exec type is similar to simple, but the service manager will consider the unit started immediately after the main service binary has been executed.

Change to notify:
	Behavior of notify is similar to exec; however, it is expected
	that the service sends a notification message via sd_notify(3)
	or an equivalent call when it has finished starting up. systemd
	will proceed with starting follow-up units after this notification
	message has been sent.

If notify doesn't work, we could fall back to exec:
	The exec type is similar to simple, but the service manager will
	consider the unit started immediately after the main service binary
	has been executed.
@DimitriPapadopoulos
Copy link
Collaborator Author

As usual, the ArchLinux documentation is quite good, much better than the systemd documentation itself:

  • Type=simple (default): systemd considers the service to be started up immediately. The process must not fork. Do not use this type if other services need to be ordered on this service, unless it is socket activated.
  • Type=notify: identical to Type=simple, but with the stipulation that the daemon will send a signal to systemd when it is ready.

@DimitriPapadopoulos DimitriPapadopoulos merged commit 1968e11 into adrienverge:master Oct 20, 2021
@DimitriPapadopoulos DimitriPapadopoulos deleted the systemd.service branch October 20, 2021 05:56
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.

None yet

1 participant