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

updating startup scripts #3873

Merged
merged 5 commits into from Oct 6, 2023
Merged

updating startup scripts #3873

merged 5 commits into from Oct 6, 2023

Conversation

wileyj
Copy link
Contributor

@wileyj wileyj commented Aug 23, 2023

With the stacks.system unitfile, stopping the service during when not at chain tip was resulting in a panic (thread stopped).
The methods used in the current systemd unit no longer appear to be needed where a PID is recorded via forking the process using sh.

Using a standard execstart line of ExecStart=/usr/local/bin/stacks-node start --config=/etc/stacks-blockchain/Config.toml
seems more than sufficient now - start/stop/restart all work as expected during a sync as well as when the chain has reached tip.

Minor correction was made in the stacks.init script to use the default logfile mentioned in the comment vs a non-existent /stacks-blockchain directory (this is configurable by the user).

@wileyj wileyj self-assigned this Aug 23, 2023
@wileyj wileyj added the chore Necessary but less impactful tasks such as cleanup or reorg label Aug 23, 2023
@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Merging #3873 (473f005) into develop (20bb540) will not change coverage.
Report is 1 commits behind head on develop.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #3873   +/-   ##
========================================
  Coverage     0.16%    0.16%           
========================================
  Files          337      337           
  Lines       286759   286759           
========================================
  Hits           469      469           
  Misses      286290   286290           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@CharlieC3 CharlieC3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple minor comments, but otherwise LGTM! :shipit:

contrib/init/stacks.service Outdated Show resolved Hide resolved
contrib/init/stacks.service Show resolved Hide resolved
Copy link
Member

@jcnelson jcnelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blindly approving this. I famously don't use systemd ;) But if it works on your end and Charlie's end, I'm sure it's fine.

Copy link
Member

@CharlieC3 CharlieC3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Send it! :shipit:

Copy link

@EmbeddedAndroid EmbeddedAndroid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@wileyj wileyj merged commit dedb06a into develop Oct 6, 2023
2 checks passed
@wileyj wileyj deleted the chore/update-unit-file branch October 6, 2023 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Necessary but less impactful tasks such as cleanup or reorg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants