Skip to content

Commit 6c7c28b

Browse files
committed
snap: bitcoin-core service app
1 parent 1028195 commit 6c7c28b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

snap/snapcraft.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ confinement: strict
1111
base: core18
1212

1313
apps:
14+
service:
15+
command: bitcoind -startupnotify='systemd-notify --ready' -shutdownnotify='systemd-notify --stopping'
16+
daemon: notify
17+
plugs: [home, removable-media, network, network-bind]
18+
environment:
19+
# Override HOME so the datadir is located at
20+
# ~/snap/bitcoin-core/common/.bitcoin/ instead of
21+
# ~/snap/bitcoin-core/current/.bitcoin/, and each new version of the
22+
# snap won't have a different data directory:
23+
# https://docs.snapcraft.io/environment-variables/7983
24+
HOME: $SNAP_USER_COMMON
1425
daemon:
1526
command: bitcoind
1627
plugs: [home, removable-media, network, network-bind]

0 commit comments

Comments
 (0)