cloudflare / tableflip

Graceful process restarts in Go
BSD 3-Clause "New" or "Revised" License
2.91k stars 148 forks source link

Request for updating README.MD #54

Open palvaneh opened 4 years ago

palvaneh commented 4 years ago

Before anything, I'd like to thank you for this amazing repo.

I just want to say it's good to mention this fact (in readme.md) that reloading a systemd service will not update service environment vars.

Having such a systemd unit file:

[Unit]
Description=Service using tableflip

[Service]
EnvironmentFile=/path/to/config-file
ExecStart=/path/to/binary -some-flag /path/to/pid-file
ExecReload=/bin/kill -HUP $MAINPID
PIDFile=/path/to/pid-file

By updating the config-file content and executing systemctl reload service, the reloaded service will not get new/updated environment vars. The service should read its configs/envs itself.

cristaloleg commented 1 year ago

Should you systemctl daemon-reload first?