Skip to content

Commit

Permalink
snap: bitcoin-core service app
Browse files Browse the repository at this point in the history
  • Loading branch information
achow101 committed Apr 18, 2024
1 parent 1028195 commit c3fd168
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ confinement: strict
base: core18

apps:
service:
command: $SNAP/bin/bitcoind -startupnotify='systemd-notify --ready' -shutdownnotify='systemd-notify --stopping'
daemon: notify
plugs: [home, removable-media, network, network-bind]
environment:
# Override HOME so the datadir is located at
# ~/snap/bitcoin-core/common/.bitcoin/ instead of
# ~/snap/bitcoin-core/current/.bitcoin/, and each new version of the
# snap won't have a different data directory:
# https://docs.snapcraft.io/environment-variables/7983
HOME: $SNAP_USER_COMMON
daemon:
command: bitcoind
plugs: [home, removable-media, network, network-bind]
Expand Down

0 comments on commit c3fd168

Please sign in to comment.