mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-11-16 06:09:26 +00:00
* Update buildroot 2020.02.01 Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix LN * Fix wpa Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix lint Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * fix-network Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix script Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
39 lines
454 B
Bash
39 lines
454 B
Bash
#!/bin/sh
|
|
#
|
|
# Starts rpcbind.
|
|
#
|
|
|
|
start() {
|
|
printf "Starting rpcbind: "
|
|
umask 077
|
|
start-stop-daemon -S -q -p /var/run/rpcbind.pid --exec /usr/sbin/rpcbind
|
|
echo "OK"
|
|
}
|
|
stop() {
|
|
printf "Stopping rpcbind daemon: "
|
|
start-stop-daemon -K -q -p /var/run/rpcbind.pid
|
|
echo "OK"
|
|
}
|
|
restart() {
|
|
stop
|
|
start
|
|
}
|
|
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
restart|reload)
|
|
restart
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart}"
|
|
exit 1
|
|
esac
|
|
|
|
exit $?
|
|
|