Vim/etc/rc.d/rc.local
#!/bin/bash
systemctl start Docker.service
/root/hsl-win7-ns3-root.sh 6 destroy
/root/ Hsl-win7-ns3-root.sh 6 destroy
/root/hsl_install_6_docker-centos-quagga.sh destroy
/root/hsl_install_6_ docker-centos-quagga.sh Destroy
/root/hsl-win7-ns3-root.sh 6 Create
/root/hsl_install_6_ DOCKER-CENTOS-QUAGGA.SH Create
chmod +x/etc/rc.d/rc.local
Vim/usr/lib/systemd/system/rc-local.service
# This file is part of systemd.
#
systemd are free software, you can redistribute it and/or modify it
# under the terms of the GNU lesser General public License
as published by # the free Software Foundation either version 2.1 of the License, or
# (at your option) any later version.
# This unit gets pulled automatically to Multi-user.target by
# systemd-rc-local-generator If/etc/rc.d/rc.local Executable.
[Unit]
description=/etc/rc.d/rc.local compatibility
conditionfileisexecutable=/etc/rc.d/rc.local
After= Network.target
[Service]
type=forking
execstart=/etc/rc.d/rc.local start
timeoutsec=0
Remainafterexit=yes
Systemctl Enable Rc-local.service
Systemctl Status Rc-local.service