Skip to content

Commit

Permalink
Document example systemd service configuration (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
larry-cdn77 committed Apr 22, 2024
1 parent 5594f2e commit 3d8a869
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/src/content/docs/install.md
Expand Up @@ -67,3 +67,32 @@ Example:
```console
docker run -d -v $(PWD)/config.yml:/opt/config.yml -p 9090:9090 chproxy-test -config /opt/config.yml
```

### systemd service

Example systemd service configuration:

```
[Unit]
Description=Chproxy
Documentation=https://www.chproxy.org/
Requires=network.target
After=network.target
[Service]
Type=notify
User=chproxy
Group=chproxy
ExecStart=/usr/bin/chproxy -config /etc/chproxy/chproxy.yml
TimeoutSec=30
Restart=on-failure
# quick response on bad config
TimeoutStartSec=5
# avoid resource intensive cycles
RestartSec=30
[Install]
WantedBy=default.target
```

0 comments on commit 3d8a869

Please sign in to comment.