From: "Dmitry V. Levin" <ldv@altlinux.org> To: ALT Devel discussion list <devel@lists.altlinux.org> Subject: Re: [devel] initscripts right way Date: Thu, 2 Nov 2006 20:40:19 +0300 Message-ID: <20061102174019.GA22615@basalt.office.altlinux.org> (raw) In-Reply-To: <Pine.LNX.4.44.0611010949340.2040-100000@dad.imath.kiev.ua> [-- Attachment #1: Type: text/plain, Size: 1221 bytes --] On Wed, Nov 01, 2006 at 09:51:56AM +0200, Igor Vlasenko wrote: > Вопрос по инитскриптам. Хочу запустить фестиваль как сервис. > Форкаться и менять юзера он не умеет. > делаю > > start_daemon --name /usr/bin/festival --announce --set-user $USER > --pidfile /var/run/festival.pid --make-pidfile -- /usr/bin/festival > $OPTIONS Если сочетаете --set-user с --make-pidfile, то нужно ещё добавить --name /bin/su --expect-user root Я так никогда не делал, но ведь иначе проверка на существование процесса не будет срабатывать. > получаю гирлянду > > $ ps ax G festival > 9898 ? Ss 0:00 /bin/su -s /bin/sh -l _festival -c > /usr/bin/festival --server -b /etc/festival/server.scm > 9902 ? S 0:00 /usr/bin/festival --server -b > /etc/festival/server.scm > > при чем .pid неправильный: > > $ cat /var/run/festival.pid > 9898 Почему неправильный? Это pid утилиты /bin/su. > могу запускать без .pid, > start-stop-daemon --start --background --startas /bin/su --exec $DAEMON > --name $NAME -- -s /bin/sh -l $USER -c "exec /usr/bin/festival $OPTIONS" > > но все равно висит гирлянда. > > Как побороть гирлянду/pid? А зачем её нужно побороть? -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2006-11-02 17:40 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-11-01 7:51 Igor Vlasenko 2006-11-02 17:40 ` Dmitry V. Levin [this message] 2006-11-02 17:49 ` Pavlov Konstantin
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=20061102174019.GA22615@basalt.office.altlinux.org \ --to=ldv@altlinux.org \ --cc=devel@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 Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git