From: "Dmitry V. Levin" <ldv@altlinux.org> To: ALT Linux general discussion list <community@lists.altlinux.org> Subject: Re: [Comm] старт-script и процесс.pid Date: Fri, 11 Apr 2008 13:27:12 +0400 Message-ID: <20080411092712.GH12157@wo.int.altlinux.org> (raw) In-Reply-To: <200804110856.39737.bv@gres.tomske.elektra.ru> [-- Attachment #1: Type: text/plain, Size: 1128 bytes --] On Fri, Apr 11, 2008 at 08:56:39AM +0700, Vyacheslav Brunev wrote: > В сообщении от Thursday 10 April 2008 17:46:20 Pavlov Konstantin написал(а): > > On Thu, Apr 10, 2008 at 04:34:48PM +0700, Vyacheslav Brunev wrote: [...] > > > start() > > > { > > > is_yes "$NETWORKING" || return 0 > > > start_daemon --make-pidfile --pidfile "$PIDFILE" --lockfile > > > "$LOCKFILE" \--expect-user root -- /usr/sbin/progr > > > RETVAL=$? > > > return $RETVAL > > > } > > > > > > Всё работает и запускается, НО после запуска программе присваивается PID > > > ровно на единицу больше чем записывается в /var/run/progr.pid. > > > Соответственно корректно выключить её я уже не могу т.к. для останова > > > (см. ниже) скрипт смотрит в /var/run/, а там номер на единицу меньше. > > > > Видимо, программа сама создает pid-файл. Уберите --make-pidfile из > > start_daemon. > > Спасибо за совет. Я тоже опытным путём пришёл к такому рабочему варианту. И вообще, избегайте использовать --make-pidfile без острой необходимости. См. описание --make-pidfile в start-stop-daemon(8). -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
prev parent reply other threads:[~2008-04-11 9:27 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-04-10 9:34 Vyacheslav Brunev 2008-04-10 10:46 ` Pavlov Konstantin 2008-04-11 1:56 ` Vyacheslav Brunev 2008-04-11 9:27 ` Dmitry V. Levin [this message]
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=20080411092712.GH12157@wo.int.altlinux.org \ --to=ldv@altlinux.org \ --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