ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Alexei V. Mezin" <alexei-mezin@rambler.ru>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] не отрабатывает нормально start-stop-deamon (имя процесса содержит пробелы)
Date: Thu, 08 May 2014 00:35:33 +0400
Message-ID: <lke5el$rk6$1@ger.gmane.org> (raw)
In-Reply-To: <20140507164738.GA5136@altlinux.org>

07.05.2014 20:47, Dmitry V. Levin пишет:

>>
>> Можно как-нибудь с этим справиться?
>
> Не используйте --name, идентификация по /proc/<pid>/exe гораздо надежнее.
>


Программа запускается как /usr/sbin/ddclient, но на самом деле это 
perl-скрипт, и exe->perl, а в init-скриптах про перл ни слова. В 
результате ничего не работает, ни stop, ни status.


[root@threebears ~]# service ddclientd status
ddclient is dead, but stale PID file exists

[root@threebears ~]# ps xau | grep ddclient
dyndns     928  0.0  0.9  16204  9232 ?        S    май06   0:42

[root@threebears ~]# ll /proc/928/exe
lrwxrwxrwx 1 dyndns dyndns 0 май  7 21:18 /proc/928/exe -> 
/usr/bin/perl5.16.3


Вот в дебиан что-то из той же темы обсуждали
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=202719

Но в нашем случае все куда печальнее, потому что cmdline постоянно 
меняется, ибо там "ddclient - sleeping for XX seconds", где XX все время 
меняется.



  reply	other threads:[~2014-05-07 20:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-07 16:00 Denis G. Samsonenko
2014-05-07 16:47 ` Dmitry V. Levin
2014-05-07 20:35   ` Alexei V. Mezin [this message]
2014-05-07 21:10     ` Michael Shigorin
2014-05-07 21:29       ` Alexei V. Mezin
2014-05-07 21:44         ` Dmitry V. Levin
2014-05-08 12:19           ` Denis G. Samsonenko
2014-05-08 12:47             ` Denis G. Samsonenko
2014-05-08 12:53               ` Denis G. Samsonenko
2014-05-09 18:17                 ` Michael Shigorin
2014-05-09 18:41                   ` Paul Wolneykien
2014-05-12 10:24                     ` Rinat Bikov
2014-05-08 12:50             ` Alexei V. Mezin
2014-05-08 12:55               ` Denis G. Samsonenko

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='lke5el$rk6$1@ger.gmane.org' \
    --to=alexei-mezin@rambler.ru \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git