Skip to content

Use /sbin/sysctl in service unit to enable overcommitting memory for Ubuntu #200

Merged
merged 1 commit into from
Aug 2, 2021

Commits on Aug 2, 2021

  1. systemd/enable_overcommit_memory: Use /sbin/sysctl for Ubuntu

    Ubuntu’s package *procps* 2:3.3.16-5ubuntu3.1 installs `sysctl` only in
    `/sbin/sysctl`, and therefore the service unit fails to be started.
    
    Instead of `/usr/sbin/sysctl`, use `/sbin/sysctl`, which is a symbolic
    link on MarIuX.
    
        $ ls -l /sbin/sysctl # usrlinks-1.0-0.x86_64
        lrwxrwxrwx 1 root root 16 May 29 15:02 /sbin/sysctl -> /usr/sbin/sysctl
    
    Alternatively, as systemd does not require absolute pathnames anymore,
    only `sysctl` could be used, but be explicit for now.
    pmenzel committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    e9c1801 View commit details
    Browse the repository at this point in the history