nginx / unit

NGINX Unit - universal web app server - a lightweight and versatile open source server that simplifies the application stack by natively executing application code across eight different programming language runtimes.
https://unit.nginx.org
Apache License 2.0
5.29k stars 325 forks source link

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

Closed yosefy closed 10 months ago

yosefy commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

ok thanks i wasn't aware of that

On Tue, Sep 5, 2023 at 3:51 PM Andrew Clayton @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/nginx/unit/issues/939#issuecomment-1706562943, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCXF3O2NVLW3HCHJGM3GHLXY4N6HANCNFSM6AAAAAA4LLH4KM . You are receiving this because you authored the thread.Message ID: @.***>