Skip to content

Commit 18d1071

Browse files
Flowdalicfanquake
authored andcommitted
init: replace deprecated PermissionsStartOnly systemd directive
PermissionsStartOnly is deprecated [1]. This removes the directives and instead we prefixes the value of the ExecStartPre directive with '!', which means the executable, 'chgrp' in this case, is run with full privileges and able to change the group of /etc/bitcoin. 1: https://github.com/systemd/systemd/blob/60b45a80c1f98bad000bd902d97ecf6c4e3fc315/NEWS#L2434
1 parent 1caaf65 commit 18d1071

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
@@ -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
####################

0 commit comments

Comments
 (0)