Skip to content

Commit

Permalink
Added systemd unit file to contrib
Browse files Browse the repository at this point in the history
  • Loading branch information
osminogin committed Apr 3, 2020
1 parent 413509c commit 805c5bf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

### Changed
- Added systemd unit for Electrum wallet service @osminogin
- Electrum version updated to 3.3.8 @chris54721
- Python version bumped to 0.4.2.5 @osminogin
- Image metadata updated @osminogin
Expand Down
16 changes: 16 additions & 0 deletions contrib/electrum.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
Description=Electrum wallet daemon
Wants=network.target
Requires=docker.service
After=docker.service network.target

[Service]
TimeoutStartSec=5
Restart=always
RestartSec=20s
ExecStartPre=/usr/bin/docker pull osminogin/tor-simple
ExecStart=/usr/bin/docker run --rm --name tor -p 127.0.0.1:9050:9050 osminogin/tor-simple
ExecStop=/usr/bin/docker stop tor

[Install]
WantedBy=multi-user.target

0 comments on commit 805c5bf

Please sign in to comment.