Skip to content

Commit cf15d45

Browse files
committed
Merge bitcoin/bitcoin#33044: contrib: drop use of PermissionsStartOnly & Group=
18d1071 init: replace deprecated PermissionsStartOnly systemd directive (Florian Schmaus) 1caaf65 init: remove Group= as it will default to the user's default group (Florian Schmaus) Pull request description: > This removes the redundant 'Group=' directive and replaces the deprecated 'PermissionsStartOnly' directive. Picks up #16994 / #19513. The concern in both of these PRs was changing this too early, while systemd v240 was still prelevant on supported systems. That was ~5 years ago, and from what I can see, no modern/supported OS is still using an older systemd. Separately , I am wondering if we should move these files out to https://github.com/bitcoin-core/packaging/. ACKs for top commit: willcl-ark: reACK 18d1071 Tree-SHA512: a994e38099e68e8377ac820d3cd2047cbfca065ba617eff0d621e3c3b99b05bbd2329631aa8c885a83cf5d0066d97ff5be75bf5834e9f759d8f0d2c6c9b64851
2 parents d7ed47f + 18d1071 commit cf15d45

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

contrib/init/bitcoind.service

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ ExecStart=/usr/bin/bitcoind -pid=/run/bitcoind/bitcoind.pid \
2525
-shutdownnotify='systemd-notify --stopping'
2626

2727
# Make sure the config directory is readable by the service user
28-
PermissionsStartOnly=true
29-
ExecStartPre=/bin/chgrp bitcoin /etc/bitcoin
28+
ExecStartPre=!/bin/chgrp bitcoin /etc/bitcoin
3029

3130
# Process management
3231
####################
@@ -44,7 +43,6 @@ TimeoutStopSec=600
4443

4544
# Run as bitcoin:bitcoin
4645
User=bitcoin
47-
Group=bitcoin
4846

4947
# /run/bitcoind
5048
RuntimeDirectory=bitcoind

0 commit comments

Comments
 (0)