From dbbe13e43b8f6af00c0d5ecaccbf0ddb6b432e94 Mon Sep 17 00:00:00 2001 From: Patrick Gallagher Date: Wed, 16 Jun 2021 11:15:54 -0400 Subject: [PATCH] Systemd service changes Renames squirrel.unit to squirrel.service and updates readme to reflect. Also added Environment vars that may be helpful. --- example/systemd/README.md | 7 +++++-- example/systemd/{squirrel.unit => squirrel.service} | 0 2 files changed, 5 insertions(+), 2 deletions(-) rename example/systemd/{squirrel.unit => squirrel.service} (100%) diff --git a/example/systemd/README.md b/example/systemd/README.md index 2566ac4..aa91901 100644 --- a/example/systemd/README.md +++ b/example/systemd/README.md @@ -1,8 +1,8 @@ -The `squirrel.unit` file is an example systemd unit file for keeping the squirrel service running. +The `squirrel.service` file is an example systemd unit file for keeping the squirrel service running. - change the configuration flags under `[Service]`. -- `sudo cp squirrel.unit /etc/systemd/system/` +- `sudo cp squirrel.service /etc/systemd/system/` - `sudo systemctl start squirrel.service` # Useful commands @@ -20,6 +20,9 @@ sudo systemctl stop squirrel.service sudo systemctl restart squirrel.service sudo systemctl status squirrel.service ``` +# Useful variables +Environment="HTTP_PROXY=http://proxy.company.com:port/" +Environment="HTTPS_PROXY=http://proxy.company.com:port/" Tail logs: ``` diff --git a/example/systemd/squirrel.unit b/example/systemd/squirrel.service similarity index 100% rename from example/systemd/squirrel.unit rename to example/systemd/squirrel.service