Crontab Question

These are old archives. They are kept for historic purposes only.
Post Reply
pete212
Posts: 80
Joined: Mon Jul 12, 2004 1:56 am

Crontab Question

Post by pete212 »

Well since my rh9 cannot seem to keep the ulimit as 4096 and the only way i can change the ulimit is if i 'ulimit -n 4096' as root, i was wondering if i could add a line to my ircdchk or ircd.cron so everytime the crontab trys to start the server it ulimit -n 4096 before it starts the server so i dont get this error in the log.txt

Couldn't find the ircd running. Reloading it...

_ _ _ ___________ _____ _
| | | | | |_ _| ___ \/ __ \ | |
| | | |_ __ _ __ ___ __ _| | | | | |_/ /| / \/ __| |
| | | | '_ \| '__/ _ \/ _` | | | | | / | | / _` |
| |_| | | | | | | __/ (_| | |_| |_| |\ \ | \__/\ (_| |
\___/|_| |_|_| \___|\__,_|_|\___/\_| \_| \____/\__,_|
v3.2.1
using TRE 0.6.8

* Loading IRCd configuration ..
* Configuration loaded without any problems ..
* Loading tunefile..
* Dynamic configuration initialized .. booting IRCd.
---------------------------------------------------------------------
The OS enforces a limit on max open files
Hard Limit: 1024 MAXCONNECTIONS: 4096
Fix MAXCONNECTIONS
If so, how? because i dont know anythin on crontab script making.
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

crontab doesnt do starting servers :P

I think you might want to check out /etc/init.d, not sure, been a long while since i've been on *nix.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Ron2K

Post by Ron2K »

Slightly off-topic, but did you follow the instructions in the FAQ (Other - I want my IRCd to hold over 1024 connections) to change the MAXCONNECTIONS value? Because, if you get all of that sorted out, you probably won't have to do ulimit -n 4096 every time.
pete212
Posts: 80
Joined: Mon Jul 12, 2004 1:56 am

Post by pete212 »

yes i did do it and i still have to ulimit -n 4096
Post Reply