Skip to content

Commit

Permalink
Merge pull request #200 from mariux64/fix-enable_overcommit_memory-un…
Browse files Browse the repository at this point in the history
…it-for-ubuntu

Use `/sbin/sysctl` in service unit to enable overcommitting memory for Ubuntu
  • Loading branch information
donald authored Aug 2, 2021
2 parents 0f121b7 + e9c1801 commit 0a6a3e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc_systemd_units/enable_overcommit_memory.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ ConditionHost=|flughafenberlinbrandenburgwillybrandt.molgen.mpg.de
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/sysctl vm.overcommit_memory=0
ExecStop=/usr/sbin/sysctl vm.overcommit_memory=2
ExecStart=/sbin/sysctl vm.overcommit_memory=0
ExecStop=/sbin/sysctl vm.overcommit_memory=2

[Install]
WantedBy=graphical.target

0 comments on commit 0a6a3e3

Please sign in to comment.