From: Eugene Prokopiev <prokopiev@stc.donpac.ru> To: ALT Linux Community <community@lists.altlinux.org> Subject: Re: [Comm] Использование start-stop-daemon Date: Mon, 06 Nov 2006 23:17:35 +0300 Message-ID: <454F985F.5060507@stc.donpac.ru> (raw) In-Reply-To: <454F67D5.9020101@stc.donpac.ru> Решил попробовать вместо shell-скрипта использовать нечто более приближенное к тому, что должно заработать в итоге. Получилось еще хуже. Имеется Server.class - класс java, внутри которого тот же самый sleep, что и в shell-версии. В том же каталоге есть shell-cкрипт, который его запускает: # cat server.sh #!/bin/sh java Server Находясь в этом каталоге, я могу запустить скрипт и в ps увидеть /bin/sh ./server.sh и /bin/sh /usr/bin/java Server Теперь пробую сделать это чуть более правильно: # export PATH=$PATH:. # . /etc/init.d/functions # start_daemon --make-pidfile --pidfile /var/run/devman.pid --set-user devman --displayname devman -- server.sh # Не получаю ни сообщения об удаче или неудаче, ни /var/run/devman.pid, ни процессов в ps Что я делаю неправильно? Да, к вопросу об использовании Jakarta Commons Daemon в стиле Tomcat - примеры у меня не заработали, в соответствующей рассылке не помогли, поэтому решил выбрать более простой путь, который, оказывается, тоже не совсем прост ... -- С уважением, Прокопьев Евгений
next prev parent reply other threads:[~2006-11-06 20:17 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-11-06 10:56 Eugene Prokopiev 2006-11-06 11:24 ` Eugene Prokopiev 2006-11-06 13:41 ` Eugene Prokopiev 2006-11-06 15:00 ` Dmitry V. Levin 2006-11-06 16:50 ` Eugene Prokopiev 2006-11-06 20:17 ` Eugene Prokopiev [this message] 2006-11-06 20:54 ` Dmitry V. Levin 2006-11-06 21:10 ` Eugene Prokopiev
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=454F985F.5060507@stc.donpac.ru \ --to=prokopiev@stc.donpac.ru \ --cc=community@lists.altlinux.org \ /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