Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19988 - improved init.d startup script for dante
Summary: improved init.d startup script for dante
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-26 02:56 UTC by Daniel Black (RETIRED)
Modified: 2003-12-23 02:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
new startup script - files/dante-sockd-init (dante-sockd,946 bytes, text/plain)
2003-04-26 03:02 UTC, Daniel Black (RETIRED)
Details
dante-sockd-init.diff (dante.diff,728 bytes, patch)
2003-12-18 23:51 UTC, Daniel Black (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Black (RETIRED) gentoo-dev 2003-04-26 02:56:49 UTC
The current  dante startup script provides incorrect details when no configuriation file is 
created. (see a. below) 
 
Currently the startup script places the "sockd" server into background immediately. 
Any errors in the configuration file are silently ignored in the startup process. (see b 
below) 
 
The sockd server currenly employs TCP keep-alive messages to maintain server 
contectivity. I suggest this is a bit unnecessary and it creates problems with 
dial-on-demand connections that should timeout. 
 

Reproducible: Always
Steps to Reproduce:
a) 
1. rc-update add dante-sockd default 
2. restart without a /etc/socks/sockd.conf 
b) 
1. add some gibberish in the /etc/socks/sockd.conf file 
2. /etc/init.d/dante-sockd restart 
Actual Results:  
a) the correct directory of the documentation should be specified. "info sockd" is not 
suggested to correctly make a configuration file. 
b) Errors are ignored and to all appearances "dante" was started correctly. 

Expected Results:  
a) better info is provided on generated on how to set up configuration files. 
b) The sockd displays that it has an error in its configuration file.
Comment 1 Daniel Black (RETIRED) gentoo-dev 2003-04-26 03:02:32 UTC
Created attachment 11166 [details]
new startup script - files/dante-sockd-init

For Changelog

  26 Apr 2003; Daniel Black <dragonheart@tpg.com.au> files/dante-sockd-init :
  Corrected startup script to improve information given upon error conditions.
  Socket TCP keep alive disabled by default now.
Comment 2 Phil Sweeney 2003-12-18 04:33:31 UTC
I just spent some time pulling my hair out as to why dante-sockd wouldn't start properly on bootup, but it worked fine when I manually started it.

This init.d script by Daniel actually shows me the error message that is causing my problem!  Please consider merging it (it's been 7 months since it was entered here).  Thanks.
Comment 3 Daniel Black (RETIRED) gentoo-dev 2003-12-18 16:16:59 UTC
Ben Lutgens <lamer@gentoo.org> no longer a dev.
Comment 4 Daniel Black (RETIRED) gentoo-dev 2003-12-18 18:04:30 UTC
For the ebuild, >=sys-apps/sed-4 is only a compile time dependacy
Comment 5 Daniel Black (RETIRED) gentoo-dev 2003-12-18 23:51:40 UTC
Created attachment 22427 [details, diff]
dante-sockd-init.diff

agriffis modifed the dante ebuild on Dec 8 - 2003 is he interested?
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-12-23 02:48:28 UTC
commited to CVS by myself now.