Skip to content

Commit

Permalink
contrib: add comments to systemd units
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilata committed Jun 9, 2021
1 parent 7c35bad commit dd32ead
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions contrib/systemd/charge-lnd.service
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
[Unit]
Description=Adjust LND routing fees
Documentation=https://github.com/accumulator/charge-lnd/blob/master/README.md
Requires=lnd.service
After=lnd.service

[Service]
Type=oneshot
ExecStart=/usr/bin/charge-lnd \

# change /usr/local/bin and /var/lib/lnd to a path where you installed lnd
# and a path to its datadir respectively
ExecStart=/usr/local/bin/charge-lnd \
--lnddir /var/lib/lnd \
--grpc localhost:10009 \
--config /etc/lnd-charge.config
Expand Down
3 changes: 2 additions & 1 deletion contrib/systemd/charge-lnd.timer
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[Unit]
Description=Adjust LND routing fees
Documentation=https://github.com/accumulator/charge-lnd/blob/master/README.md

[Timer]
# https://www.freedesktop.org/software/systemd/man/systemd.time.html#Calendar%20Events
OnCalendar=*-*-* 04:00:00
RandomizedDelaySec=1h

0 comments on commit dd32ead

Please sign in to comment.