ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] initscripts right way
@ 2006-11-01  7:51 Igor Vlasenko
  2006-11-02 17:40 ` Dmitry V. Levin
  2006-11-02 17:49 ` Pavlov Konstantin
  0 siblings, 2 replies; 3+ messages in thread
From: Igor Vlasenko @ 2006-11-01  7:51 UTC (permalink / raw)
  To: ALT Devel discussion list

Вопрос по инитскриптам. Хочу запустить фестиваль как сервис.
Форкаться и менять юзера он не умеет.
делаю

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-02 17:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-01  7:51 [devel] initscripts right way Igor Vlasenko
2006-11-02 17:40 ` Dmitry V. Levin
2006-11-02 17:49 ` Pavlov Konstantin

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