Merge pull request #3507 from opensourcerouting/master-init-fixes

[master] minor tools/ fixes
This commit is contained in:
Donald Sharp 2018-12-18 19:21:39 -05:00 committed by GitHub
commit 38a5232499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -1,2 +1 @@
service integrated-vtysh-config
username cumulus nopassword

View File

@ -1,5 +1,6 @@
[Unit]
Description=FRRouting
Documentation=https://frrouting.readthedocs.io/en/latest/setup.html
After=networking.service
OnFailure=heartbeat-failed@%n.service
@ -17,5 +18,6 @@ LimitNOFILE=1024
ExecStart=/usr/lib/frr/frrinit.sh start
ExecStop=/usr/lib/frr/frrinit.sh stop
ExecReload=/usr/lib/frr/frrinit.sh reload
[Install]
WantedBy=network-online.target

View File

@ -83,7 +83,7 @@ daemon_list() {
for daemon in $DAEMONS; do
eval cfg=\$$daemon
eval inst=\$${daemon}_instances
[ "$daemon" = zebra ] && cfg=yes
[ "$daemon" = zebra -o "$daemon" = staticd ] && cfg=yes
if [ -n "$cfg" -a "$cfg" != "no" -a "$cfg" != "0" ]; then
debug "$daemon enabled"
enabled="$enabled $daemon"
@ -135,6 +135,10 @@ daemon_start() {
ulimit -n $MAX_FDS > /dev/null 2> /dev/null
daemon_prep "$daemon" "$inst" || return 1
if test ! -d "$V_PATH"; then
mkdir -p "$V_PATH"
chown frr "$V_PATH"
fi
eval wrap="\$${daemon}_wrap"
bin="$D_PATH/$daemon"