Up until a few hours sgo they were working just fine, and then they just stoped working with out me doing anything! I tried service crond restart /sbin/service httpd restart and restarted the server. Nothing.
I'm the only one with access to the server, so no one else could edit the file. I was doing cd /etc/ pico crontab after I discovered it wasn't working and nothing had been edited in the codes. [root@ensim root]# service crond status crond (pid 10922 10919 3270 3035) is running... All signs point to it working!!! Though the crons are actually not being done!! I'll try crontab -e once I can get back on. My server is hosted in The Planets H1 fried datacenter that had the explosion...three days ago, and the server went off again!!! Some other info... When I did tail -n20 /var/log/cron I think it was saying it was working... Jun 2 22:07:01 ensim CROND[10949]: LAuS error - do_command.c:226 - laus_attach: (19) laus_attach: No such device Jun 2 22:08:00 ensim CROND[11144]: (root) CMD (curl http://www.domain.com/cron_minute.php) Jun 2 22:08:00 ensim CROND[11144]: LAuS error - do_command.c:226 - laus_attach: (19) laus_attach: No such device Jun 2 22:08:00 ensim CROND[11147]: (root) CMD (/home/virtual/site7/fst/var/www/html/cron_minute.php) Jun 2 22:08:00 ensim CROND[11147]: LAuS error - do_command.c:226 - laus_attach: (19) laus_attach: No such device Code (markup): The LAuS error was being generated before it stoped working. * * * * * root curl http-//www.domain.com/cron_minute.php is an example
Have you checked the usual culprits for things going strangely wrong? Like low/zero available disk space, kernel bug, disk failure etc.? Also try checking the rest of the system logs (dmesg, /var/log/messages etc.) which may tell you if something is wrong.
I got rid of the Jun 2 22:08:00 ensim CROND[11147]: LAuS error - do_command.c:226 - laus_attach: (19) laus_attach: No such device Code (markup): error, so the logs now spit out Jun 4 00:00:01 ensim CROND[4286]: (root) CMD (curl http-//www.video-game-rpg.com/crons_day.php) Jun 4 00:00:01 ensim CROND[4297]: (root) CMD (/usr/local/bin/weblogs) Jun 4 00:00:01 ensim CROND[4289]: (root) CMD (curl http-//www.video-game-rpg.com/crons_hour.php) Jun 4 00:00:01 ensim CROND[4300]: (root) CMD (/usr/local/sbin/bwcron) Jun 4 00:00:01 ensim CROND[4292]: (root) CMD (curl http-//www.video-game-rpg.com/crons_fivemins.php) Jun 4 00:00:01 ensim CROND[4303]: (root) CMD (nice --adjustment=15 /usr/local/sbin/update_site_summary_cache) Jun 4 00:00:01 ensim CROND[4284]: (root) CMD (curl http-//www.vgchat.com/back-up/back-ups.php) Jun 4 00:00:01 ensim CROND[4295]: (root) CMD (curl http-//www.video-game-rpg.com/crons_minute.php) Jun 4 00:00:01 ensim CROND[4306]: (root) CMD (/usr/bin/run-parts /etc/logrotate/d) Jun 4 00:01:00 ensim CROND[4438]: (root) CMD (curl http-//www.video-game-rpg.com/crons_minute.php) Jun 4 00:01:00 ensim CROND[4441]: (root) CMD (run-parts /etc/cron.hourly) Code (markup): and [root@ensim root]# service crond status crond (pid 6076 3787) is running... The crons actually came back on and started working again...and then stoped again. What's supposed to show up there? I get... ~ ~ "/tmp/crontab.3240" 0L, 0C [root@ensim root]# service crond restart Stopping crond: [ OK ] Starting crond: [ OK ]
is your game site mc codes based scrip... if so, sombody is playing with you and using sql injections.
Yes, it is!! Though, how can they stop crons that arn't part of the game? I got a back-up script located on another domain and that doesn't run when it's not working. It seams to stop working for awhile, then start working.... June 3: Stopped at about 8:30 PM. June 4: Noon PST they started working, then not very long after that, stopped. June 4: 4:34:00 pm PST, started up again. June 5, 3:35:00 pm Stoped, then at 4:15:01 PM started up again. Are there any logs I can look at? Would changing the permission of the file or changing the file name help? Before you could rin the crons from the browser. Now only the server can. And I added a 12 digit number in the file name. If it's not secure now, would moving the cron files to another domain help?
Thanks for posting that. That was exactly what it was! I did two things to fix it and they havn't been messed with since then. 1. Changed the file names to something like cron_day6fhk337uJHf0.php. Every one that's tried to hack that game script knows where they are located. 2. Chmod 744. Even if you load the script from the browser, with the required code in the URL, the script doesn't run. Only the server can run the file. I also installed the cron files on another domain as a back-up, though I never had to switch to using them.
glad its all fixed bro. i hate it when people can't leave other peoples games alone. just play, but no, they have to try to ruin what you work so hard on to make fun for others. instead, it at times makes it no fun at all for the players, and they decide, games, just arent what they wanna do. Again, good luck in the future game, hope all goes well from here