Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ziproxy status crashed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fred0
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2006
Posts: 81
Location: France

PostPosted: Sat Oct 02, 2010 9:47 pm    Post subject: ziproxy status crashed Reply with quote

Code:
# /etc/init.d/ziproxy start
* Starting ziproxy ...               [ ok ]

# rc-status
 ziproxy                                  [  crashed  ]

# tail -n 1 /var/log/ziproxy/error.log
2010-10-02 23:15:37 - INFORMATION (daemon): Daemon started.

# pgrep -l ziproxy
2976 ziproxy

# /etc/init.d/ziproxy stop
 * Stopping ziproxy ...                 [ ok ]

# rc-status
 ziproxy                                  [  stopped  ]

# pgrep -l ziproxy
2976 ziproxy

# /etc/init.d/ziproxy start
 * Starting ziproxy ...                  [ ok ]

# rc-status
 ziproxy                                [  crashed  ]

# tail -n 1 /var/log/ziproxy/error.log
2010-10-02 23:32:04 - FATAL ERROR (daemon): Failed to connect socket for receiving connections (port: 31888).

# pgrep -l ziproxy
2976 ziproxy

RunAsUser = "ziproxy" but same happen with root
Back to top
View user's profile Send private message
fred0
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2006
Posts: 81
Location: France

PostPosted: Wed Oct 06, 2010 7:17 pm    Post subject: Reply with quote

Always the same !!
Any idea ?
Back to top
View user's profile Send private message
fred0
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2006
Posts: 81
Location: France

PostPosted: Mon Oct 11, 2010 1:57 pm    Post subject: Reply with quote

Hello (again) :!:
Is there any one :?:

Question : Is it normal that the file /var/run/ziproxy not exists ?
Back to top
View user's profile Send private message
fred0
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2006
Posts: 81
Location: France

PostPosted: Tue Oct 12, 2010 9:26 am    Post subject: Reply with quote

Hello,

Hi have found a workaround :

In file /etc/init.d/ziproxy changing :
Code:
start-stop-daemon --start --pidfile /var/run/${SVCNAME}.pid \
               --chuid ziproxy:ziproxy --exec /usr/sbin/ziproxy -- ${OPT} [b]> /var/run/${SVCNAME}.pid[/b]

with :
Code:
start-[code]stop[/code]-daemon --start --pidfile /var/run/${SVCNAME}.pid \
                --chuid ziproxy:ziproxy --exec /usr/sbin/ziproxy -- ${OPT} -p /tmp/${SVCNAME}.pid
        mv /tmp/${SVCNAME}.pid /var/run/${SVCNAME}.pid

Works.

This is probably not the best way. If any one have a better solution.......
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum