From: Ivan Fedorov <ns@altlinux.ru> To: community@altlinux.ru Subject: Re: [Comm] hardlink -> mysql Date: Tue, 04 Jan 2005 20:59:24 +0800 Message-ID: <41DA932C.6050804@altlinux.ru> (raw) In-Reply-To: <200501041534.46434.checked@mail.ru> [-- Attachment #1: Type: text/plain, Size: 1077 bytes --] Лааз Вадим пишет: > В сообщении от 4 Январь 2005 14:12 Ivan Fedorov написал(a): > >>>Нужно после подъема/рестарта mysql создавать хардлинк >>>ln /var/lib/mysql/mysql.sock /var/spool/postfix/var/lib/mysql/mysql.sock >> >>Есть у меня ОЧЕНЬ большое подозрение, что это не будет работать... > > > в /etc/init.d/mysqld > start() > { > sh link.sh & > ... > } > > > в /etc/init.d/link.sh > #!/bin/sh > > while [ ! -S /var/lib/mysql/mysql.sock ]; do > a=1; > done > > echo 'link ok' > /res.txt > > такая вот фича не прокатывает и при > > # service mysqld restart > Stopping mysqld service: [ DONE ] > Adjusting environment for mysqld: link.sh: link.sh: No such file or directory > [ DONE ] > Starting safe_mysqld service:[ DONE ] > > я так понял, что mysqld при переходе в chroot забирает с собой и дочерние > процессы? Ну естественно... > можно это как-то обойти? > Вешайте вот так: case "$1" in start) start >>>>>>>>>>> while [ ! -S /var/lib/mysql/mysql.sock ]; do a=1; done echo 'link ok' > /res.txt >>>>>>>>>>> ;; [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-01-04 12:59 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-01-04 7:53 Лааз Вадим 2005-01-04 11:12 ` Ivan Fedorov 2005-01-04 12:34 ` Лааз Вадим 2005-01-04 12:59 ` Ivan Fedorov [this message] 2005-01-04 13:25 ` Лааз Вадим 2005-01-04 14:09 ` Лааз Вадим 2005-01-11 10:27 ` Vladimir V Kamarzin 2005-01-31 12:46 ` Grigory Fateyev 2005-02-02 5:34 ` Лааз Вадим 2005-02-02 8:16 ` [Comm] " Michael Shigorin 2005-02-02 9:28 ` Лааз Вадим 2005-01-05 7:49 ` [Comm] " Ivan Fedorov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=41DA932C.6050804@altlinux.ru \ --to=ns@altlinux.ru \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git