prev
next
ru.linux.redhat
FromYury Roschupkin2:466/466.0Date Write2010-10-02 23:47:26
ToMichael Dukelsky0:0/0.0Date Arrived2010-10-03 02:00:04
Subjснова вопрос по fc12
Attr
Hi!

02 окт 10 23:17, you wrote to me:

[...]

MD> А в /etc/init.d/binkd у тебя что написано?

cat /etc/init.d/binkd
#!/bin/sh -e

OPTS=" -DCq /usr/local/etc/binkd.cfg"
PIDFILE=/var/run/binkd/binkd.pid
DAEMON=/usr/local/sbin/binkd
USERNAME="thinker"

test -f $DAEMON || exit 0

# don't start binkd if it is started by inetd
if [ -e /etc/xinetd.conf ]; then
grep -q '^binkp[[:space:]]' /etc/xinetd.conf && exit 0
fi

case "$1" in
start)
echo -n "Starting FTN mailer: binkd"
start-stop-daemon --start --background --pidfile $PIDFILE \
--chuid $USERNAME:$USERNAME --exec $DAEMON -- $OPTS
echo "."
;;
stop)
echo -n "Stopping FTN mailer: binkd"
start-stop-daemon --oknodo --stop --pidfile $PIDFILE --exec $DAEMON
echo "."
;;
reload)
echo -n "Reloading FTN mailer: binkd"
start-stop-daemon --stop --signal 1 --pidfile $PIDFILE --exec $DAEMON
echo "."
;;
restart|force-reload)
sh $0 stop
sleep 1
sh $0 start
;;
*)
echo "Usage: /etc/init.d/binkd {start|stop|restart|reload|force-reload}"
exit 1
;;
esac

exit 0


-+-
WBR, YuR

---
* Origin: http://fidonet-online.org (2:466/466)