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

don't delete current systemd service file if changed by user #939

Closed
yosefy opened this issue Sep 5, 2023 · 2 comments
Closed

don't delete current systemd service file if changed by user #939

yosefy opened this issue Sep 5, 2023 · 2 comments

Comments

@yosefy
Copy link

yosefy commented Sep 5, 2023

we usually change unit.service file (adding control listen and such)
but every time yum updated this file is rewritten
usually it doesn't happen with other packages. only .dist file is created

thanks

@ac000
Copy link
Member

ac000 commented Sep 5, 2023

Are you editing the /usr/lib/systemd/system/unit.service file?

If so, you should leave that alone and copy it to /etc/systemd/system/unit.service and edit that instead. That overrides the one under /usr/lib and won't get overwritten.

@yosefy yosefy closed this as completed Sep 5, 2023
@yosefy
Copy link
Author

yosefy commented Sep 5, 2023 via email

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

2 participants