Current time: 11-23-2024, 08:32 AM Hello There, Guest! (LoginRegister)


Post Reply 
Cronjobs
Author Message
fred Offline
Junior Member
*

Posts: 10
Joined: Aug 2009
Reputation: 0
Post: #1
Cronjobs
Hi,

When will the cronjobs be in? I hacked them in currently using the 'stubs' that are already there and they are working, but would like it better to have the supported version.

Thanks
08-23-2009 07:26 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: Cronjobs
Cronjob handling is on the wishlist, but nobody is working on it yet, so we can't give you a prediction. If you want to work on it, I'll help answering any questions, providing any help you may need, reviewing the code and commiting it Smile
08-23-2009 08:24 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fred Offline
Junior Member
*

Posts: 10
Joined: Aug 2009
Reputation: 0
Post: #3
RE: Cronjobs
Well I have it done and it's working, but I bet you would describe it as messy Smile It's my first time working on this panel. I worked on other panels though (I implemented cronjobs 3 times now for 3 different panels...) and they are more or less the same expect the 'engine' perl stuff which I, quite frankly, more or less hacked for cron support. Most of it, as you know, was already in there, but the hooking up wasn't, so I made one big loop which calls those functions (in ispcp-dmn-mngr) ; I don't think that's the idea in hindsight, but we had to get it up and running so I chose this path.
08-23-2009 09:19 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: Cronjobs
Quote:so I made one big loop which calls those functions (in ispcp-dmn-mngr)
I don't get it, sorry, what do you mean by "one big loop"? Maybe you can upload a patch so I can take a look at it...
08-23-2009 10:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
data-stream_ru Offline
Moderator
*****
Moderators

Posts: 471
Joined: Jan 2009
Reputation: 7
Post: #5
RE: Cronjobs
CronJobs for ispCP
12-09-2009 02:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #6
RE: Cronjobs
be aware that without a proper security framework for cgi-bin scripts a cronjob module is propably dangerous. (Users are still suexec'd but not chrooted)
12-10-2009 01:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
data-stream_ru Offline
Moderator
*****
Moderators

Posts: 471
Joined: Jan 2009
Reputation: 7
Post: #7
RE: Cronjobs
(12-10-2009 01:25 AM)ephigenie Wrote:  be aware that without a proper security framework for cgi-bin scripts a cronjob module is propably dangerous. (Users are still suexec'd but not chrooted)

In my solution, perl/cgi can be disabled and CJ can be used only for php Smile
12-10-2009 03:41 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #8
RE: Cronjobs
hm ok - but it relies on hcron which needs to be compiled by the ppl themselves.
And then there's no distribution keeping packages up to date ...

Hm - but ok maybe if we build some kind of cron wrapper for php-only scripts (the wrapper then uses the php.ini of that domain with all limitations (no exec, passthru and so on ) )
We could do it ...
12-11-2009 10:49 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Jillian Offline
Junior Member
*

Posts: 51
Joined: Mar 2009
Reputation: 1
Post: #9
RE: Cronjobs
I have give ssh access to system for some users, so they can add crontabs without any new web packages. Only thing I installed was lshell ( http://lshell.ghantoos.org/ ) and few config changes
(This post was last modified: 12-12-2009 05:06 AM by Jillian.)
12-12-2009 05:06 AM
Visit this user's website Find all posts by this user Quote this message in a reply
bpratt Offline
Junior Member
*

Posts: 71
Joined: Oct 2007
Reputation: 0
Post: #10
RE: Cronjobs
So what happens when a cron job fails, and tries to send emails to the cron job user?

Currrently when you manually add a cronjob for the ispcp user, i.e. vu2010 , crontab sends an email to that same user on the system. Of course if that email is full of debug details, the user never gets to see it.

That's something that needs to be looked at, so that emails destined for example user vu2010 will get forwarded to say the postmaster@of-that-domain.com or configurable when the user sets up the cronjob.
02-11-2010 08:28 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)