/srv/irclogs.ubuntu.com/2019/06/15/#ubuntu-server.txt

snake-venom hi there i was adding crons in my ubuntu , i want to know  " wget -O - -q -t 0 " why  "0" in last and somewhere existing cron have "1" in last..09:28
ploxilnif you run "man wget" it should tell you about all of the options, including the "-t" option, which is "number of tries", where 0 means infinite09:37
jafahi guys, I have a conf file to increase the nofiles limit in /etc/security/limits.d for all users and for root. ulimit reports the new limit when invoked from a shell but anything started from rc.local still has the default limit16:04
jafais the limit conf only applied after rc.local executes?16:05
jafatested a solution - sysctl write then ulimit set at the start of rc.local16:15
rbasakjafa: IIRC, /etc/security/limits.d/ is read by a PAM module, so applies to logged in users.16:29
rbasakrc.local is run without going through PAM, so won't apply.16:29
rbasakjafa: I suggest you replace your use of rc.local with a systemd unit. Limits are tunable directly in systemd units16:29
rbasakjafa: or alternatively, just use ulimit in rc.local?16:30
jafai should look at systemd units16:35
jafaquick fix was to add "sysctl -w fs.file-max=1000000" and "ulimit -n 1000000" to the start of rc.local16:36

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!