<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>2223</bug_id>
          
          <creation_ts>2002-04-29 05:02 0000</creation_ts>
          <short_desc>init.d-script for Dante sockd.</short_desc>
          <delta_ts>2002-04-30 23:39:09 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Unspecified</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>tuxie@dekadance.se</reporter>
          <assigned_to>woodchip@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>tuxie@dekadance.se</who>
            <bug_when>2002-04-29 05:02:17 0000</bug_when>
            <thetext>I noticed that Dante didn&apos;t come with a start/stop-script so I wrote one 
myself.. sockd doesn&apos;t create a pidfile so I had to use --make-pidfile --
background, but it seems to work fine!
Here it is:

#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later

depend() {
        need net
}

checkconfig() {
        if [ ! -f /etc/socks/sockd.conf ]
        then
                eerror &quot;Please create /etc/socks/sockd.conf!&quot;
                eerror &quot;Example configfiles can be found 
in /usr/share/doc/dante-x.x.x/example/&quot;
                return 1
        fi
        return 0
}

start() {
        checkconfig || return $?
        ebegin &quot;Starting Dante sockd&quot;
        start-stop-daemon --start --quiet --pidfile /var/run/sockd.pid \
                --make-pidfile --background --exec /usr/sbin/sockd
        eend $? &quot;Failed to start sockd&quot;
}

stop() {
        ebegin &quot;Stopping Dante sockd&quot;
        start-stop-daemon --stop --quiet --pidfile /var/run/sockd.pid
        eend $? &quot;Failed to stop sockd&quot;

        # clean stale pidfile
        if [ -f /var/run/sockd.pid ]
        then
                rm -f /var/run/sockd.pid
        fi
}</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>woodchip@gentoo.org</who>
            <bug_when>2002-04-30 23:39:09 0000</bug_when>
            <thetext>good job!

okay, added in dante-1.1.9-r1.ebuild.

thx for writing and contributing this ;)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>