I have created a idler
pasted this inside:
then i run:
Putted this in /etc/crontab
Idler.sh inneholds:
To check if it runs
Get this error msg:
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:
So whats wrong. Is that the correct priority and why does i have two of them?
Gives me:
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)