Modified the 'Type=oneshot' to 'Type=simple' in the systemd service file#1453
Modified the 'Type=oneshot' to 'Type=simple' in the systemd service file#14531kjnv wants to merge 2 commits intomattermost:masterfrom
Conversation
…ile. When the process is started using 'systemctl start' or 'systemctl restart', the status remains stuck at 'activating' because the oneshot type does not indicate to systemd that the process has started successfully. Changing the type to simple ensures that systemd recognizes the process as running once it is launched.
|
Hello @1kjnv, Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here. Per the Mattermost Contribution Guide, we need to add you to the list of approved contributors for the Mattermost project. Please help complete the Mattermost contribution license agreement? This is a standard procedure for many open source projects. Please let us know if you have any questions. We are very happy to have you join our growing community! If you're not yet a member, please consider joining our Contributors community channel to meet other contributors and discuss new opportunities with the core team. |
|
/check-cla |
|
Newest code from 1kjnv has been published to preview environment for Git SHA d85ab97 |
|
I think we want to keep oneshot as we want to wait for the service to have actually started, the option "simple" does not wait even if there was a failure. Here is a reference that describes the difference between them https://stackoverflow.com/a/39050387 |
|
@enahum I'd like to change
|
|
@stylianosrigas any input on this? |
|
@enahum @stylianosrigas reminder! |
|
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
Summary
Modified the
'Type=oneshot'to'Type=simple'in the systemd service fileWhen the process is started using
'systemctl start'or'systemctl restart', the status remains stuck atbecause the oneshot type does not indicate to systemd that the process has started successfully.
Changing the type to simple ensures that systemd recognizes the process as running once it is launched.