(OK) Fedora 24 Boot Auto start Script-Rc.local-rc-local.service

Source: Internet
Author: User


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













Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.