ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Dmitry Vodennikov <vod@elecom.ru>
To: community@altlinux.ru
Subject: Re: [Comm] висит dante
Date: Mon, 31 Jan 2005 01:13:59 -0800
Message-ID: <41FDF6D7.60604@elecom.ru> (raw)
In-Reply-To: <41E78854.80907@elecom.ru>

[-- 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=$?
 		;;
 	*)

      reply	other threads:[~2005-01-31  9:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-13 13:07 Mikhail Pokidko
2005-01-14  8:52 ` Dmitry Vodennikov
2005-01-31  9:13   ` Dmitry Vodennikov [this message]

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=41FDF6D7.60604@elecom.ru \
    --to=vod@elecom.ru \
    --cc=community@altlinux.ru \
    /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 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