|
|
checkconfig() { | checkconfig() { |
if [ ! -f /etc/socks/sockd.conf ] ; then | if [ ! -f /etc/socks/sockd.conf ] ; then |
eerror "You need to setup /etc/socks/sockd.conf first" | eerror "You need to setup /etc/socks/sockd.conf first" |
eerror "Examples are in /usr/share/doc/dante/example" |
eerror "Examples are in /usr/share/doc/dante[version]/example" |
|
eerror "for info: info sockd.conf" |
return 1 | return 1 |
fi | fi |
} | } |
|
|
checkconfig || return 1 | checkconfig || return 1 |
ebegin "Starting dante sockd" | ebegin "Starting dante sockd" |
start-stop-daemon --start --quiet --pidfile /var/run/sockd.pid \ | start-stop-daemon --start --quiet --pidfile /var/run/sockd.pid \ |
--make-pidfile --background --exec /usr/sbin/sockd |
--make-pidfile --exec /usr/sbin/sockd -- -Dn |
eend $? "Failed to start sockd" | eend $? "Failed to start sockd" |
} | } |
| |