nvidia-persistenced.service conf does not make sense
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nvidia |
New
|
Undecided
|
Unassigned |
Bug Description
The /lib/systemd/
So to fix this flaw, one should a) use the DynamicUser directive and b) use the RuntimeDirectory directive to let systemd create and delete the on start/stop with proper permissions (and yes, the --user and --gid options as well as its runtime directory "management" of the nvidia-persistenced binary are IMHO completely useless, just overhead).
E.g. the following script works as expected (unless the bogus /lib/udev/
[Unit]
Description=NVIDIA Persistence Daemon
After=syslog.target
[Service]
Type=forking
PIDFile=
DynamicUser=true
RuntimeDirector
ExecStart=
TimeoutSec=60
[Install]
WantedBy=
BTW: The fix for /lib/udev/
sed -i -e '/nvidia-
Starting a service via udev trigger is a really, really, really bad idea!!!
information type: | Proprietary → Public |