From: "Denis G. Samsonenko" <d.g.samsonenko@gmail.com>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] не отрабатывает нормально start-stop-deamon (имя процесса содержит пробелы)
Date: Thu, 8 May 2014 19:19:54 +0700
Message-ID: <CAFE-3XZWF_HVpnmuYyPoJDJgbKA6M+x-ZCXbym3iBBAkDpEw0Q@mail.gmail.com> (raw)
In-Reply-To: <20140507214401.GA6360@altlinux.org>
День добрый!
8 мая 2014 г., 4:44 пользователь Dmitry V. Levin написал:
> start_daemon/stop_daemon/status --displayname ddclient
Сделал так:
stop)
stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE"
--expect-user dyndns --displayname ddclient -- /usr/bin/perl ||
failure
;;
status)
status --pidfile "$PIDFILE" --expect-user dyndns --displayname
ddclient -- /usr/bin/perl
;;
Останов и проверка теперь отрабатывают нормально. Для запуска
используется такая запись:
start)
start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE"
--user dyndns --expect-user dyndns -- /usr/sbin/ddclient -daemon
"$CHECKTIME" || failure
;;
Вот тут есть трудность. Если сервис уже запущен, то эта ситуация не
распознаётся, и происходит повторный запуск сервиса. По идее,
start-stop-daemon проверяет, запущен ли уже сервис, и если запущен --
должен ничего не делать.
--
Всего доброго,
Денис.
next prev parent reply other threads:[~2014-05-08 12:19 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
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 [this message]
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=CAFE-3XZWF_HVpnmuYyPoJDJgbKA6M+x-ZCXbym3iBBAkDpEw0Q@mail.gmail.com \
--to=d.g.samsonenko@gmail.com \
--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