Current time: 04-18-2024, 06:20 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cronjobs ispCP? Packete mit Hcrond für 64bit und 32bit erstellt
Author Message
PCMichi Offline
Junior Member
*

Posts: 89
Joined: Mar 2009
Reputation: 0
Post: #1
Cronjobs ispCP? Packete mit Hcrond für 64bit und 32bit erstellt
Hallo,

habe heute ein wenig in den /var/www/ispcp Verzeichnissen herumgestöbert. Dabei ist mir folgendes aufgefallen:

In /var/www/ispcp/gui/client/ gibt es folgende Dateien:

cronjobs_add.php
cronjobs_edit.php
cronjobs_overview.php

Heißt das, dass man direkt in ispcp cronjobs erstellen kann??
Und warum ist dies noch nirgends im Menü enthalten??

mfg
PCMichi
(This post was last modified: 11-19-2009 07:50 AM by ZooL.)
10-18-2009 01:36 AM
Find all posts by this user Quote this message in a reply
Knut Offline
Member
***

Posts: 736
Joined: Nov 2006
Reputation: 10
Post: #2
RE: In ISPCP cornjob enthalten??
Schau Dir mal folgenden Thread an: http://www.isp-control.net/forum/thread-8105.html

Gruß Knut
10-18-2009 01:49 AM
Find all posts by this user Quote this message in a reply
FISA4 Offline
Member
***

Posts: 668
Joined: Feb 2008
Reputation: 15
Post: #3
RE: In ISPCP cornjob enthalten??
Wenn das HowTo auch auf Debian Lenny gehen würde .... *seufz* Rolleyes

Gruß

FISA4
10-18-2009 10:02 AM
Find all posts by this user Quote this message in a reply
ZooL Offline
Moderator
*****
Moderators

Posts: 3,429
Joined: Jan 2007
Reputation: 79
Post: #4
RE: In ISPCP cornjob enthalten??
Quote:Tested under RH, FC, CentOS, Mandriva

da steht nur das es nicht getestet ist von nicht laufen sagt ja keiner was fisa Smile
10-18-2009 06:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
PCMichi Offline
Junior Member
*

Posts: 89
Joined: Mar 2009
Reputation: 0
Post: #5
RE: In ISPCP cornjob enthalten??
Wäre schön, wenn das einer mal testen könnte unter Debian Lenny.

Vielleicht könnte er auch ein kleines How-To schreiben.
10-19-2009 04:19 AM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #6
RE: In ISPCP cornjob enthalten??
@Zool, wäre doch mal was für Dich Wink Du wolltest doch Crons haben Tongue
10-19-2009 03:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Knut Offline
Member
***

Posts: 736
Joined: Nov 2006
Reputation: 10
Post: #7
RE: In ISPCP cornjob enthalten??
(10-19-2009 04:19 AM)PCMichi Wrote:  Vielleicht könnte er auch ein kleines How-To schreiben.

Ich sehe keinen Grund (ausser evtl. Punkt 8 weil es andere Pfade sind) warum es nicht unter Lenny laufen sollte.
Ein Mini-howto ist bei den Dateien zum runterladen enthalten.

--schnipp--
Code:
ronJob for ispCP Omega
Instalation manual

1. Dounload this archive to local machine.
2. Open .tpl files end change english words to national words if needed
3. Upload to server whith true path. chown and chmod files

4. Untar and compile hcron-daemon (see README)
At this step you can have an erros becouse not all needed librires and pacage mey be installed on you machene.
See erorrors and install all neded pacages by yum

5. copy /root/hcrond-0.3.2/etc/hcrondrc to /etc/hcrondrc
copy /root/hcrond-0.3.2/etc/init.d/hcrond to /etc/init.d/hcrond

6. in comand line -
#chkconfig --add hcrond
#chkconfig hcrond on
#service hcrond start

7. Create SQL table 'hcrontab' using hcrond.sql (under ispcp database)

8. For RH, Fedora, CentOS e.t.c.
Open /etc/ispcp/apache/00_master.conf
add the end of line "php_admin_value open_basedir..."
":{APACHE_WWW_DIR}"

Open /etc/httpd/vhosts/00_master.conf
add the end of line "php_admin_value open_basedir..."
":/var/www/virtual/"

restart APACHE

9. Open /client/webtools.php and add link to cronjobs_overview.php

10. Get Fun!
--schnapp--


Knut
10-19-2009 04:44 PM
Find all posts by this user Quote this message in a reply
FISA4 Offline
Member
***

Posts: 668
Joined: Feb 2008
Reputation: 15
Post: #8
RE: In ISPCP cornjob enthalten??
(10-19-2009 04:44 PM)Knut Wrote:  Ich sehe keinen Grund (ausser evtl. Punkt 8 weil es andere Pfade sind)
...

Ich probiers mal aus. Wink

Gruß

FISA4
10-20-2009 01:35 AM
Find all posts by this user Quote this message in a reply
FISA4 Offline
Member
***

Posts: 668
Joined: Feb 2008
Reputation: 15
Post: #9
RE: In ISPCP cornjob enthalten??
Ich habs dann mal versucht...

1 OK
2 OK, hab ich so gelassen
3 OK
4 FEHLER
5 OK
6 FEHLER
7 OK
8,9,10 Noch nicht erledigt

Fehler zu 4:
Code:
ispcp:~/hcrond-0.3.2# make install
gcc -std=c99 -pedantic -Wall -W   -c -o main.o main.c
main.c:34:25: error: mysql/mysql.h: Datei oder Verzeichnis nicht gefunden
main.c:35:29: error: libdaemon/dfork.h: Datei oder Verzeichnis nicht gefunden
main.c:36:28: error: libdaemon/dlog.h: Datei oder Verzeichnis nicht gefunden
main.c:37:28: error: libdaemon/dpid.h: Datei oder Verzeichnis nicht gefunden
main.c:38:31: error: libdaemon/dsignal.h: Datei oder Verzeichnis nicht gefunden
main.c:88: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
main.c:89: error: expected â)â before â*â token
main.c:99: error: expected â)â before â*â token
main.c: In function âmainâ:
main.c:118: warning: implicit declaration of function âdaemon_pid_file_killâ
main.c:120: warning: implicit declaration of function âdaemon_logâ
main.c:126: error: âdaemon_log_identâ undeclared (first use in this function)
main.c:126: error: (Each undeclared identifier is reported only once
main.c:126: error: for each function it appears in.)
main.c:127: error: âdaemon_log_useâ undeclared (first use in this function)
main.c:127: error: âDAEMON_LOG_AUTOâ undeclared (first use in this function)
main.c:127: error: âDAEMON_LOG_STDERRâ undeclared (first use in this function)
main.c:131: warning: implicit declaration of function âdaemon_retval_initâ
main.c:132: warning: implicit declaration of function âdaemon_forkâ
main.c:134: warning: implicit declaration of function âdaemon_retval_sendâ
main.c:138: warning: implicit declaration of function âdaemon_retval_doneâ
main.c:141: warning: implicit declaration of function âdaemon_retval_waitâ
main.c:150: error: âdaemon_pid_file_procâ undeclared (first use in this function)
main.c:151: warning: implicit declaration of function âdaemon_pid_file_createâ
main.c:153: warning: implicit declaration of function âdaemon_pid_file_is_runningâ
main.c:160: error: âdaemon_pid_file_removeâ undeclared (first use in this function)
main.c:171: warning: implicit declaration of function âdaemon_signal_initâ
main.c:176: error: âdaemon_signal_doneâ undeclared (first use in this function)
main.c:198: warning: implicit declaration of function âdaemon_pid_file_removeâ
main.c:199: warning: implicit declaration of function âdaemon_signal_doneâ
main.c: In function ârun_jobsâ:
main.c:220: warning: implicit declaration of function âdaemon_signal_nextâ
main.c: At top level:
main.c:265: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
main.c:285: error: expected â)â before â*â token
main.c:313: error: expected â)â before â*â token
main.c: In function ârefreshâ:
main.c:337: error: âMYSQLâ undeclared (first use in this function)
main.c:337: error: âsqlâ undeclared (first use in this function)
main.c:340: warning: implicit declaration of function âdb_connectâ
main.c:348: warning: implicit declaration of function âdb_updateâ
main.c:370: warning: implicit declaration of function âmysql_closeâ
main.c:375: error: âMYSQL_RESâ undeclared (first use in this function)
main.c:375: error: âresâ undeclared (first use in this function)
main.c:376: warning: implicit declaration of function âqueryfâ
main.c:376: warning: implicit declaration of function âmysql_store_resultâ
main.c:376: warning: pointer/integer type mismatch in conditional expression
main.c:378: error: âMYSQL_ROWâ undeclared (first use in this function)
main.c:378: error: expected â;â before ârowâ
main.c:379: error: ârowâ undeclared (first use in this function)
main.c:379: warning: implicit declaration of function âmysql_fetch_rowâ
main.c:438: warning: implicit declaration of function âmysql_free_resultâ
main.c: In function ârun_thisâ:
main.c:481: warning: initialization discards qualifiers from pointer target type
make: *** [main.o] Fehler 1

Fehler zu 6:
Code:
ispcp:~/hcrond-0.3.2# chkconfig --add hcrond
insserv: warning: script 'K01hcrond' missing LSB tags and overrides
insserv: warning: script 'hcrond' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0) of script `halt' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `umountnfs.sh' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `umountfs' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `sendsigs' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `umountroot' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (6) of script `reboot' overwrites defaults (empty).
hcrond                    0:off  1:off  2:on   3:on   4:on   5:on   6:off



Gruß
FISA4
(This post was last modified: 10-20-2009 06:45 PM by FISA4.)
10-20-2009 06:44 PM
Find all posts by this user Quote this message in a reply
Knut Offline
Member
***

Posts: 736
Joined: Nov 2006
Reputation: 10
Post: #10
RE: In ISPCP cronjob enthalten??
Schuss ins blaue: hast Du vorher build-essentials installiert ?
#aptitude install build-essential

Knut
10-20-2009 07:42 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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