https://bugs.kde.org/show_bug.cgi?id=522615

--- Comment #23 from vindicator <[email protected]> ---
For those manually or using a timer to kill off kwallet, might I suggest
looking at `cgroups`, specifically `MemoryMax=<#>` for systemd units, where the
process is killed when that threshold has been reached.

It can't be done with a simple "systemctl edit --user" command though.
Unit: dbus-:<#>.<#>-org.kde.kwalletd@<#>.service
1) $ systemctl status --user <...> //get the current transient iteration. start
with "dbus" and double-tab for bash-completion to list out what exists.
2) $ cat <...> //display contents of the unit file in path from the status
output
3) $ systemctl edit --user --full --force <...> //normally nice with regular
unit files, but not transients. ***Need to strip out ":<#>.<#>" and "@<#>" (but
keep the "@" itself)
4) copy/paste contents from "cat"
5) add "MemoryMax=<#>" under the "[Service]" section. <#>="1G" for example if
you want to be generous.
6) systemctl stop --user <unit> //just to kill existing transient so override
can take effect with the next iterative run.

This is partly pseudo. I haven't tried it for this service, but have used
cgroups in general successfully.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to