diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-04-19 13:21:21 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-04-19 13:21:21 +0200 |
commit | 9c2f5943aa3506c264b3cbaf3af42c8fa7dbc1ef (patch) | |
tree | 28b649cfc49446ccc2f47e5f98a11eed5f8b9d46 /tools | |
parent | Merge pull request #11012 from anlancs/bgpd-mh-simplify-condition (diff) | |
download | frr-9c2f5943aa3506c264b3cbaf3af42c8fa7dbc1ef.tar.xz frr-9c2f5943aa3506c264b3cbaf3af42c8fa7dbc1ef.zip |
tools: Print usage for frrinit.sh when running without arguments
```
root@spine1-debian-11:~/frr# /usr/lib/frr/frrinit.sh
Usage:
/usr/lib/frr/frrinit.sh (start|stop|restart|force-reload|reload|status)
```
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/frrinit.sh.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/frrinit.sh.in b/tools/frrinit.sh.in index df5f0853d..bc93ea33f 100644 --- a/tools/frrinit.sh.in +++ b/tools/frrinit.sh.in @@ -127,6 +127,8 @@ reload) ;; *) - log_failure_msg "Unknown command: $1" >&2 + echo "Usage:" + echo " ${0} (start|stop|restart|force-reload|reload|status)" exit 1 + ;; esac |