Skip to content

Commit bd8d659

Browse files
committed
Systemd replace deprecated PermissionsStartOnly
PermissionsStartOnly is deprecated (but not yet removed); its functionality replaced by special executable prefixes. The `!` prefix allows the prefixed command to be run with unrestricted User and Group. This is necessary to ensure group ownership is set correctly to the configuration directory.
1 parent 79aeed8 commit bd8d659

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contrib/init/bitcoind.service

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ ExecStart=/usr/bin/bitcoind -daemon \
2020
-datadir=/var/lib/bitcoind
2121

2222
# Make sure the config directory is readable by the service user
23-
PermissionsStartOnly=true
24-
ExecStartPre=/bin/chgrp bitcoin /etc/bitcoin
23+
ExecStartPre=!/bin/chgrp bitcoin /etc/bitcoin
2524

2625
# Process management
2726
####################

0 commit comments

Comments
 (0)