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 |
---|---|---|
ploxiln | if 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 infinite | 09:37 |
jafa | hi 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 limit | 16:04 |
jafa | is the limit conf only applied after rc.local executes? | 16:05 |
jafa | tested a solution - sysctl write then ulimit set at the start of rc.local | 16:15 |
rbasak | jafa: IIRC, /etc/security/limits.d/ is read by a PAM module, so applies to logged in users. | 16:29 |
rbasak | rc.local is run without going through PAM, so won't apply. | 16:29 |
rbasak | jafa: I suggest you replace your use of rc.local with a systemd unit. Limits are tunable directly in systemd units | 16:29 |
rbasak | jafa: or alternatively, just use ulimit in rc.local? | 16:30 |
jafa | i should look at systemd units | 16:35 |
jafa | quick fix was to add "sysctl -w fs.file-max=1000000" and "ulimit -n 1000000" to the start of rc.local | 16:36 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!