ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] висит dante
@ 2005-01-13 13:07 Mikhail Pokidko
  2005-01-14  8:52 ` Dmitry Vodennikov
  0 siblings, 1 reply; 3+ messages in thread
From: Mikhail Pokidko @ 2005-01-13 13:07 UTC (permalink / raw)
  To: community

 Где покопать на предмет почему dante висит при запуске?

В messages :
Jan 13 15:44:29 solar sockd[8171]: created new negotiatorchild
Jan 13 15:44:29 solar sockd[8172]: created new requestchild
Jan 13 15:44:29 solar sockd[8173]: created new requestchild
Jan 13 15:44:29 solar sockd[8174]: created new requestchild
Jan 13 15:44:29 solar sockd[8175]: created new requestchild
Jan 13 15:44:29 solar sockd[8170]: dante/server v1.1.14 running
Jan 13 15:44:29 solar sockd[8176]: created new iochild
на этом, собственно, все и заканчивается


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

* Re: [Comm] висит dante
  2005-01-13 13:07 [Comm] висит dante Mikhail Pokidko
@ 2005-01-14  8:52 ` Dmitry Vodennikov
  2005-01-31  9:13   ` Dmitry Vodennikov
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Vodennikov @ 2005-01-14  8:52 UTC (permalink / raw)
  To: community

Mikhail Pokidko пишет:
>  Где покопать на предмет почему dante висит при запуске?
> 
> В messages :
> Jan 13 15:44:29 solar sockd[8171]: created new negotiatorchild
> Jan 13 15:44:29 solar sockd[8172]: created new requestchild
> Jan 13 15:44:29 solar sockd[8173]: created new requestchild
> Jan 13 15:44:29 solar sockd[8174]: created new requestchild
> Jan 13 15:44:29 solar sockd[8175]: created new requestchild
> Jan 13 15:44:29 solar sockd[8170]: dante/server v1.1.14 running
> Jan 13 15:44:29 solar sockd[8176]: created new iochild
> на этом, собственно, все и заканчивается

У меня данте не то чтобы висит, запускается нормально, но в бэкграунд не
уходит, останавливаясь на
initlog -q -n sockd -c 'start-stop-daemon --start -N 0 --exec
/usr/sbin/sockd --pidfile /var/run/sockd.pid --user root --
  '

Чтобы по быстрому решить проблему, мне пришлось написать в
/etc/sysconfig/sockd
# Socks proxy daemon command line options
EXTRAOPTIONS="-D"

Но это конечно решение не совсем хорошее - после добавления -D
сервис стартует, но потом через service sockd <command> с ним ничего
сделать нельзя.

Если кто-то подтвердит баг, то можно и его можно и повешать (скорее, на
пакет dante, чем на service)




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

* Re: [Comm] висит dante
  2005-01-14  8:52 ` Dmitry Vodennikov
@ 2005-01-31  9:13   ` Dmitry Vodennikov
  0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Vodennikov @ 2005-01-31  9:13 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 1428 bytes --]

Dmitry Vodennikov пишет:
> Mikhail Pokidko пишет:
> 
>>  Где покопать на предмет почему dante висит при запуске?
>>
>> В messages :
>> Jan 13 15:44:29 solar sockd[8171]: created new negotiatorchild
>> Jan 13 15:44:29 solar sockd[8172]: created new requestchild
>> Jan 13 15:44:29 solar sockd[8173]: created new requestchild
>> Jan 13 15:44:29 solar sockd[8174]: created new requestchild
>> Jan 13 15:44:29 solar sockd[8175]: created new requestchild
>> Jan 13 15:44:29 solar sockd[8170]: dante/server v1.1.14 running
>> Jan 13 15:44:29 solar sockd[8176]: created new iochild
>> на этом, собственно, все и заканчивается
> 
> 
> У меня данте не то чтобы висит, запускается нормально, но в бэкграунд не
> уходит, останавливаясь на
> initlog -q -n sockd -c 'start-stop-daemon --start -N 0 --exec
> /usr/sbin/sockd --pidfile /var/run/sockd.pid --user root --
>  '
> 
> Чтобы по быстрому решить проблему, мне пришлось написать в
> /etc/sysconfig/sockd
> # Socks proxy daemon command line options
> EXTRAOPTIONS="-D"
> 
> Но это конечно решение не совсем хорошее - после добавления -D
> сервис стартует, но потом через service sockd <command> с ним ничего
> сделать нельзя.
> 
> Если кто-то подтвердит баг, то можно и его можно и повешать (скорее, на
> пакет dante, чем на service)
Дошли таки руки разобраться с sockd, проблема исключительно в 
/etc/init.d/sockd
На dante-server повешен Bug#: 5996, а вот и патчик, исправляющий ошибки

[-- Attachment #2: sockd.patch --]
[-- Type: text/plain, Size: 1111 bytes --]

--- sockd.orig	2005-01-14 10:31:38 +0500
+++ sockd	2005-01-31 14:06:39 +0500
@@ -30,13 +30,13 @@
 
 start () {
 	is_yes "$NETWORKING" || return 0
-	start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root -- sockd $EXTRAOPTIONS
+	start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user nosockd -- sockd -D $EXTRAOPTIONS
 	RETVAL=$?
 	return $RETVAL
 }
 
 stop () {
-	stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root -- sockd
+	stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user nosockd -- sockd
 	RETVAL=$?
 	return $RETVAL
 }
@@ -48,7 +48,7 @@
 
 reload () {
 	msg_reloading sockd
-	stop_daemon --pidfile "$PIDFILE" --expect-user root -HUP -- sockd
+	stop_daemon --pidfile "$PIDFILE" --expect-user nosockd -HUP -- sockd
 	RETVAL=$?
 	return $RETVAL
 }
@@ -61,9 +61,6 @@
 	stop)
 		stop
 		;;
-	status)
-		status
-		;;
 	restart)
 		restart
 		;;
@@ -86,7 +83,7 @@
 		fi
 		;;
 	status)
-		status --pidfile "$PIDFILE" --expect-user root -- sockd
+		status --pidfile "$PIDFILE" --expect-user nosockd -- sockd
 		RETVAL=$?
 		;;
 	*)

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

end of thread, other threads:[~2005-01-31  9:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-13 13:07 [Comm] висит dante Mikhail Pokidko
2005-01-14  8:52 ` Dmitry Vodennikov
2005-01-31  9:13   ` Dmitry Vodennikov

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

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

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


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