-
Notifications
You must be signed in to change notification settings - Fork 38.8k
contrib: replace deprecated PermissionsStartOnly in systemd init #16994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contrib: replace deprecated PermissionsStartOnly in systemd init #16994
Conversation
|
See: Special executable prefixes
Systemd versions:
|
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.
36030e0 to
bd8d659
Compare
|
ACK bd8d659, tested on Linux Mint 19.2 hebasto@linux-511:~$ systemctl start bitcoind.service
hebasto@linux-511:~$ stat /etc/bitcoin | grep id
Access: (0710/drwx--x---) Uid: ( 0/ root) Gid: ( 1002/ bitcoin) |
|
Do we know what version the prefix syntax was introduced, and if there are operating systems where the current file works but would be broken by this change? systemd/systemd#10802 (comment) says they don't have plans to drop support for PermissionsStartOnly |
systemd/systemd#6577, since v235. So, jessie and xenial do not comply. |
|
Since this file is mostly a suggestion for packagers/sysadmins, would a comment suffice to address pre-v235 situations? |
|
Then again, if there's no immediate plans for systemd to drop |
Tend to agree here, if there's no hurry, and everything else is the same, staying with the old configuration option for now will result in the least surprises. |
Can you close this until then, please? |
|
PIcked up in #33044. |
PermissionsStartOnlyis deprecated (but not yet removed); itsfunctionality replaced by special executable prefixes. The
!prefixallows 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.
Followup on @hebasto's comment on #16556