Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

systemd service file example for start|reload|stop envoy #100

Open
nskalis opened this issue Aug 17, 2019 · 3 comments
Open

systemd service file example for start|reload|stop envoy #100

nskalis opened this issue Aug 17, 2019 · 3 comments
Assignees

Comments

@nskalis
Copy link

nskalis commented Aug 17, 2019

What is incorrect, confusing or missing:

What I find to be missing is an example systemd service file for the common ops of administrating envoy, such as start, stop, reload.
That would be of great help for an envoy newbie such as myself and others I assume.

Suggested fix:

Following our conversation in Slack, would you be so kind to document an example of
a systemd service file for starting, reloading, stopping envoy when installed using get envoy.io ?

@lizan lizan self-assigned this Aug 18, 2019
@liamawhite liamawhite added the P2 label Aug 28, 2019
@nskalis
Copy link
Author

nskalis commented Sep 4, 2019

just a kind reminder on this please :) I would appreciate your help into closing this by providing the systems service file even as an example in this issue.

@lizan
Copy link
Contributor

lizan commented Sep 4, 2019

@nskalis A very quick sample based on upstream hot-restarter wrapper will be like:

[Unit]
Description=Envoy Proxy
Requires=network-online.target
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/local/bin/envoy-hot-restarter.py /usr/local/bin/start-envoy.sh
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/bin/kill -TERM $MAINPID
Restart=always
RestartSec=30

[Install]
WantedBy=multi-user.target

Where envoy-hot-restarter.py and start-envoy.sh can found from this doc:
https://www.envoyproxy.io/docs/envoy/latest/operations/hot_restarter

We're trying to simplify this a bit with the package and release with right wrappers.

@b-rohit
Copy link

b-rohit commented Jun 24, 2021

@lizan shouldn't it be as following .

ExecStart=python3 /usr/local/bin/envoy-hot-restarter.py /usr/local/bin/start-envoy.sh

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants