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

Ensure systemd services are stopped during upgrade #43

Closed
phillxnet opened this issue Aug 14, 2023 · 2 comments
Closed

Ensure systemd services are stopped during upgrade #43

phillxnet opened this issue Aug 14, 2023 · 2 comments

Comments

@phillxnet
Copy link
Member

phillxnet commented Aug 14, 2023

We appear to be failing to stop our outgoing systemd services during an upgrade. This may be down to a legacy forced/premature removal of these service files prior to later automated mechanisms intended to address this.

This issue is a spin-off from:

rockstor/rockstor-core#2651

@phillxnet
Copy link
Member Author

Establishing that our existing rpmbuild (spec) configuration correctly 'owns' all our systemd service files in their installed (active) locations:

rleap15-5:~ # rpm -ql rockstor | grep "\.service"
/etc/systemd/system/nginx.service.d/30-rockstor-nginx-override.conf
/opt/rockstor/conf/rockstor-bootstrap.service
/opt/rockstor/conf/rockstor-hdparm.service
/opt/rockstor/conf/rockstor-pre.service
/opt/rockstor/conf/rockstor.service
/usr/lib/systemd/system/rockstor-bootstrap.service
/usr/lib/systemd/system/rockstor-pre.service
/usr/lib/systemd/system/rockstor.service

phillxnet added a commit to phillxnet/rockstor-rpmbuild that referenced this issue Aug 15, 2023
- Stop pre-existing rockstor services via incoming package.
- Then wipe prior Python bytecode (*.pyc) files under src dir.
- Fix bug re failed removal of legacy directories.
- Add in-scriptlet comments to clarify the incoming/outgoing
package origin/owner.
- Improve/clarify systemd service macro comments.
phillxnet added a commit that referenced this issue Aug 17, 2023
…stopped-during-upgrade

Ensure systemd services are stopped during upgrade #43
@phillxnet
Copy link
Member Author

Closing as:
Fixed by #44

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