View Single Post
Old 2021-03-20, 15:38   #4
UBR47K
 
UBR47K's Avatar
 
Aug 2015

22×17 Posts
Default

If you want this to work without root, place the following into ~/.config/systemd/user/mprime.service for the user that will run mprime.
Code:
[Unit]
Description=Prime95 client

[Service]
Type=simple
ExecStart=/usr/local/bin/mprime -d -w%h/mprime-data
KillMode=process
KillSignal=SIGINT
Restart=always

[Install]
WantedBy=multi-user.target
Afterwards, still logged in as the mprime user, enable this at boot with:
Code:
systemctl enable --user mprime.service
Lastly, as root, enable lingering for that particular user with:
Code:
loginctl enable-linger <user>
UBR47K is offline   Reply With Quote