nu porneste rc.local
Last Updated: May 06 2007 10:48, Started by
Ignition
, May 05 2007 13:22
·
0
#2
Posted 05 May 2007 - 13:56
Mai exact vad ca dupa ce lanseaza rc.mysqld nu contiunua cu restul fisierelor.
Am copiat rc.mysqld din sursele mysql /support/mysql.server asa cum scrie in doc. Mysql este pornit cu succes insa nu contiuna cu restul... |
#3
Posted 05 May 2007 - 15:01
Ignition, on May 5 2007, 14:56, said: Mai exact vad ca dupa ce lanseaza rc.mysqld nu contiunua cu restul fisierelor. Am copiat rc.mysqld din sursele mysql /support/mysql.server asa cum scrie in doc. Mysql este pornit cu succes insa nu contiuna cu restul... |
#4
Posted 05 May 2007 - 15:25
Am copiat si redenumit mysql.server in rc.mysqld.
Daca ii dau manualt "rc.mysqld start" porneste fara probleme. Daca il lansez dintr-un alt script "rc.mysqld start" executa comanda si continua executia cu linia urmatoare. Daca este lansat din rc.M porneste Mysql dupa care nu continua cu executia celorlalte linii. |
#5
Posted 05 May 2007 - 21:09
incearca asa(modifici daca e cazul)
if [ -x /usr/share/mysql/mysql.server ]; then ./usr/share/mysql/mysql.server start fi sau ceva mai frumos....faci un rc.mysql +x poate vrei sa ii dai cu stop nu kill SKIP="--skip-networking" # Start mysqld: mysqld_start() { if [ -x /usr/bin/mysqld_safe ]; then # If there is an old PID file (no mysqld running), clean it up: if [ -r /var/run/mysql/mysql.pid ]; then if ! ps axc | grep mysqld 1> /dev/null 2> /dev/null; then echo "Cleaning up old /var/run/mysql/mysql.pid." rm -f /var/run/mysql/mysql.pid fi fi /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/run/mysql/mysql.pid $SKIP & fi } # Stop mysqld: mysqld_stop() { # If there is no PID file, ignore this request... if [ -r /var/run/mysql/mysql.pid ]; then killall mysqld # Wait at least one minute for it to exit, as we don't know how big the DB is... for second in 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 \ 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 60; do if [ ! -r /var/run/mysql/mysql.pid ]; then break; fi sleep 1 done if [ "$second" = "60" ]; then echo "WARNING: Gave up waiting for mysqld to exit!" sleep 15 fi fi } # Restart mysqld: mysqld_restart() { mysqld_stop mysqld_start } case "$1" in 'start') mysqld_start ;; 'stop') mysqld_stop ;; 'restart') mysqld_restart ;; *) echo "usage $0 start|stop|restart" esac Edited by Crash, 05 May 2007 - 21:14. |
#6
Posted 06 May 2007 - 08:36
Intre timp am gasit unde este problema.... si am rezolvat...insa nu inteleg de ce merge asa...
rc.M original: ----------------- if [ -x /usr/share/mysql/mysql.server ]; then . /usr/share/mysql/mysql.server start fi ----------------- rc.M care merge (nu mai are '.' punct): -------------------- if [ -x /usr/share/mysql/mysql.server ]; then /usr/share/mysql/mysql.server start fi -------------------- @Crash Am incercat cu "./path-spre-rc" insa zice ca nu gaseste nici un fisier... Oricum vad ca fara nici un punct merge, asa ca problem solved, topic closed. |
#7
Posted 06 May 2007 - 10:48
Pctul reprezinta directorul curent. Deci se cauta un binar/script din directorul /etc/rc.d/usr/share/mysql/ care bineinteles nu exista... Ti-ar fi mers numai daca te-ai fi aflat in / (ai fi avut un cd / in fata comenzii cu pricina). Cum insa scriptul se executa din /etc/rc.d ....
|
Anunturi
Bun venit pe Forumul Softpedia!
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users