świeżo po instalacji paskietu z niceshaperem mam wrażenie, że aktualna paczka jest uszkodzona.
plik zawarty w /etc/rc.d nie zawiera bowiem wszystkich odwołań, które zawierać powinien. (nie działa stop i stats) To co prawda nie jest problem - ale warto by umieścić paczkę, zawierającą poprawny skrypt, np.
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
start() {
stat_busy "Startuje niceshaper (kontrola przepływu)"
/usr/bin/niceshaper start
stat_done
}
stop() {
stat_busy "Zatrzymanie niceshaper"
/usr/bin/niceshaper stop
stat_done
}
stats() {
stat_busy "statystyki niceshapera"
/usr/bin/niceshaper stats
stat_done
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
/usr/bin/niceshaper restart
;;
stats)
stats
;;
*)
echo "usage: $0 {start|stop|restart|stats}"
esac
exit 0