#1  
Old 16th July 2012, 21:23
Rescue9 Rescue9 is offline
Member
 
Join Date: Jun 2007
Posts: 52
Thanks: 4
Thanked 3 Times in 2 Posts
Default Cron questions

I have a script that starts a game server on my site. When I ssh into the server and add it manually via crontab -e, the server starts fine. When I comment out that file and add it via the ISPConfig panel, I can't get it to start no matter what I try.

I have it added to the ISPConfig panel as such:
Code:
/var/www/clients/client5/web11/srcds_l/orangebox/egDodServerStart.sh
I noticed that it appears to be attempting to start via the syslog as noted by the following line:
Code:
Jul 16 17:56:01 alpha CRON[18175]: (web11) CMD (/srcds_l/orangebox/egDodServerStart.sh^I#forum.mysitehere.com)
I figured that there might be an issue with the "^I#forum.mysitehere.com" might be messing things up so I added a space after my command, but it is still failing.

The log is also showing this in relation to that particular user:
Code:
Jul 16 18:21:01 alpha cron[2146]: (*system*ispc_chrooted_web11) RELOAD (/etc/cron.d/ispc_chrooted_web11)
So I checked out that file and it says
Code:
MAILTO=''
SHELL='/usr/sbin/jk_chrootsh'

50      *       *       *       *       web11   /srcds_l/orangebox/egDodServerStart.sh  #forum.mysitehere.com
This is funny to me though. Jailkit isn't even installed on the system. When I reinstalled ISPCONFIG from scratch on a new server I didn't even put jailkit back. However, for some reason I still have
Code:
lrwxrwxrwx   1 root root    24 May  3 15:07 jk_init.ini -> /etc/jailkit/jk_init.ini
lrwxrwxrwx   1 root root    27 May  3 15:07 jk_socketd.ini -> /etc/jailkit/jk_socketd.ini
I can only assume that these links are created by ISPConfig in some way.

So why is the shell setting to jk_chrootsh?

I'm at a loss on what to troubleshoot next. Any help would be greatly appreciated.

Last edited by Rescue9; 16th July 2012 at 23:13.
Reply With Quote
Sponsored Links
  #2  
Old 17th July 2012, 10:35
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,482
Thanks: 835
Thanked 5,524 Times in 4,345 Posts
Default

You enabled chrooting for the cronjob and most likely not all files required by your game server are inside the jail. If a cronjob is chrooted or not can be set in the cronjob settings after you allowed non chrooted cronjobs for this client in the client settings.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 17th July 2012, 18:50
Rescue9 Rescue9 is offline
Member
 
Join Date: Jun 2007
Posts: 52
Thanks: 4
Thanked 3 Times in 2 Posts
 
Default

Aaah. While I didn't have it set to chroot, I did have it set to URL for some reason in the template. As such, the results were definitely unexpected. In the end the command that worked for me was
Code:
srcds_l/orangebox/egDodServerStart.sh
Now, my script is running a 'screen' that is housing the server start script. When the cron job executes, it saves the screen socket to /var/run/screen/S-web11. Because of this, I can't seem to connect to the screen from the shell user, as the shell user login isn't web11.

How would I be able to connect to the screen as the shell user?

Also, it would be nice to integrate a Mailto input box on the gui so the user can set a different mailto address for the job.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron job runs on both master and mirror server, why? snowfly Installation/Configuration 7 15th May 2013 22:37
Cron isn´t working erkan Installation/Configuration 2 26th May 2012 20:30
Cron jobs not running IrDA Installation/Configuration 8 18th November 2011 15:17
cron problem morraine General 2 23rd September 2011 00:38
Problem getting cron job to run and in need of help :) MrCompTech General 7 27th July 2010 10:50


All times are GMT +2. The time now is 14:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.