Bug#924502: systemd: system.conf is ignore multiplicative suffixes K, M, G, T, P, E.

Игорь Охрименко igor.ohrimenko at gmail.com
Fri Mar 15 14:52:33 GMT 2019


I tested on these keys:
DefaultLimitNOFILE=
DefaultLimitNPROC=

bash:
systemctl show | grep LimitNO && \
(echo "DefaultLimitNOFILE=1G" & echo "DefaultLimitNPROC=1G") >>
/etc/systemd/system.conf && \
systemctl daemon-reexec && \
systemctl show | grep LimitNO && \
(echo "DefaultLimitNOFILE=1048576" & echo "DefaultLimitNPROC=1048576")
>> /etc/systemd/system.conf && \
systemctl daemon-reexec && \
systemctl show | grep LimitNO

output command:
DefaultLimitNOFILE=4096
DefaultLimitNOFILESoft=1024
DefaultLimitNOFILE=4096
DefaultLimitNOFILESoft=1024
DefaultLimitNOFILE=1048576
DefaultLimitNOFILESoft=1048576

DefaultLimitNPROC=1G and DefaultLimitNOFILE=1G are ignored.

пт, 15 мар. 2019 г. в 01:05, Michael Biebl <biebl at debian.org>:
>
> Control: tags -1 + moreinfo
>
> Am 13.03.19 um 18:14 schrieb Igor Ohrimenko:
> > Package: systemd
> > Version: 232-25+deb9u9
> > Severity: important
> >
> > Dear Maintainer, I read man system.conf and found multiplicative suffixes. I tried to use it, like 1G, but DefaultLimit does not change. I have to use the long, ugly number 1048576.
>
> which DefaultLimit?
>
> #DefaultLimitCPU=
> #DefaultLimitFSIZE=
> #DefaultLimitDATA=
> #DefaultLimitSTACK=
> #DefaultLimitCORE=
> #DefaultLimitRSS=
> #DefaultLimitNOFILE=
> #DefaultLimitAS=
> #DefaultLimitNPROC=
> #DefaultLimitMEMLOCK=
> #DefaultLimitLOCKS=
> #DefaultLimitSIGPENDING=
> #DefaultLimitMSGQUEUE=
> #DefaultLimitNICE=
> #DefaultLimitRTPRIO=
> #DefaultLimitRTTIME=
>
> --
> Why is it that all of the instruments seeking intelligent life in the
> universe are pointed away from Earth?
>



More information about the Pkg-systemd-maintainers mailing list