SRCDS Steam group


idler.c
#7
I have created a idler

Code:
cd /srcds

Code:
nano idler.c

pasted this inside:

Code:
int main() {
  while(1);
}

then i run:

Code:
gcc idler.c -o idler

Putted this in /etc/crontab

Code:
@reboot /usr/local/sbin/idler.sh

Idler.sh inneholds:

Code:
/bin/sh
# Start the idler
cd /srcds
nice ./idler &

To check if it runs
Code:
ps -A




Get this error msg:

Code:
2374 ?        00:00:00 idler.sh <defunct>
2375 ?        00:25:52 idler



So it seems to work atleast halfway. There is a idler there that not work. When i tryes to check with chrt and the correct pid i get this

The working one:

Code:
pid 2375's current scheduling policy: SCHED_OTHER
pid 2375's current scheduling priority: 0


So whats wrong. Is that the correct priority and why does i have two of them?

Code:
cat /var/log/messages /var/log/syslog | grep idler

Gives me:

Code:
Mar 18 17:17:16 c-94-255-210-250 /USR/SBIN/CRON[2370]: (root) CMD (/srcds/idler.sh)
Mar 18 17:24:37 c-94-255-210-250 /USR/SBIN/CRON[2364]: (root) CMD (/srcds/idler.sh)
Mar 18 17:44:28 c-94-255-210-250 /USR/SBIN/CRON[2353]: (root) CMD (root  /usr/local/sbin/idler.sh)
Mar 18 17:55:59 c-94-255-210-250 /USR/SBIN/CRON[2374]: (root) CMD (/usr/local/sbin/idler.sh)
Reply


Messages In This Thread
idler.c - blindek - 03-03-2009, 02:08 AM
RE: idler.c - afterhoursgaming - 03-03-2009, 02:41 PM
RE: idler.c - blindek - 03-03-2009, 08:00 PM
RE: idler.c - BehaartesEtwas - 03-03-2009, 08:21 PM
RE: idler.c - blindek - 03-03-2009, 09:01 PM
RE: idler.c - BehaartesEtwas - 03-04-2009, 06:53 PM
RE: idler.c - lhffan - 03-19-2009, 02:27 AM
RE: idler.c - Ryan - 03-21-2009, 01:07 PM
RE: idler.c - BehaartesEtwas - 03-23-2009, 12:50 AM
RE: idler.c - lhffan - 03-23-2009, 04:36 AM
RE: idler.c - realchamp - 03-23-2009, 04:44 AM
RE: idler.c - lhffan - 03-23-2009, 09:18 AM
RE: idler.c - BehaartesEtwas - 03-23-2009, 07:12 PM
RE: idler.c - lhffan - 03-23-2009, 07:28 PM
RE: idler.c - BehaartesEtwas - 03-24-2009, 07:29 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)