First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 2223
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Donny Davies (RETIRED) <woodchip@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Per Wigren <tuxie@dekadance.se>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 2223 depends on: Show dependency tree
Bug 2223 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2002-04-29 05:02 0000
I noticed that Dante didn't come with a start/stop-script so I wrote one 
myself.. sockd doesn'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 "Please create /etc/socks/sockd.conf!"
                eerror "Example configfiles can be found 
in /usr/share/doc/dante-x.x.x/example/"
                return 1
        fi
        return 0
}

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

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

        # clean stale pidfile
        if [ -f /var/run/sockd.pid ]
        then
                rm -f /var/run/sockd.pid
        fi
}

------- Comment #1 From Donny Davies (RETIRED) 2002-04-30 23:39:09 0000 -------
good job!

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

thx for writing and contributing this ;)

First Last Prev Next    No search results available      Search page      Enter new bug