From: Igor Vlasenko <vlasenko@imath.kiev.ua> To: ALT Devel discussion list <devel@lists.altlinux.org> Subject: [devel] initscripts right way Date: Wed, 1 Nov 2006 09:51:56 +0200 (EET) Message-ID: <Pine.LNX.4.44.0611010949340.2040-100000@dad.imath.kiev.ua> (raw) Вопрос по инитскриптам. Хочу запустить фестиваль как сервис. Форкаться и менять юзера он не умеет. делаю start_daemon --name /usr/bin/festival --announce --set-user $USER --pidfile /var/run/festival.pid --make-pidfile -- /usr/bin/festival $OPTIONS получаю гирлянду $ 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, start-stop-daemon --start --background --startas /bin/su --exec $DAEMON --name $NAME -- -s /bin/sh -l $USER -c "exec /usr/bin/festival $OPTIONS" но все равно висит гирлянда. Как побороть гирлянду/pid? -- Dr. Igor Vlasenko -------------------- Topology Department Institute of Math Kiev, Ukraine
next reply other threads:[~2006-11-01 7:51 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-11-01 7:51 Igor Vlasenko [this message] 2006-11-02 17:40 ` Dmitry V. Levin 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=Pine.LNX.4.44.0611010949340.2040-100000@dad.imath.kiev.ua \ --to=vlasenko@imath.kiev.ua \ --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