Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281730 - net-irc/dircproxy init.d script
Summary: net-irc/dircproxy init.d script
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-17 03:37 UTC by Doug Esanbock
Modified: 2019-11-05 22:28 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Esanbock 2009-08-17 03:37:55 UTC
Dircproxy package does not have a gentoo-style /etc/init.d script.  Here is one.

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d dircproxy start
2.
3.
Comment 1 Doug Esanbock 2009-08-17 03:38:09 UTC
#!/sbin/runscript
#

PIDFILE=/var/run/dircproxy/dircproxy.pid

depend()
{
        need net
        use dns
}

start()
{
        ebegin "Starting dircproxy"
        start-stop-daemon --start  --pidfile "$PIDFILE" -c "$DIRCUSER:$DIRCGROUP" --exec /usr/bin/dircproxy \
                -- -f /etc/dircproxy.conf -P "$PORT" --pid-file="$PIDFILE"
        eend
}

stop()
{
        ebegin "Stopping dircproxy"
        start-stop-daemon --stop --pidfile "$PIDFILE" --exec /usr/bin/dircproxy
        eend $?
}

restart()
{
        svc_stop
        svc_start
}
Comment 2 Doug Esanbock 2009-08-17 03:39:03 UTC
Might also need the /etc/conf.d:

PORT="194"
DIRCUSER="irc"
DIRCGROUP="irc"
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-11-05 22:28:20 UTC
removing.