How to Execute a Shell Script on Reboot in FreeBSD by Nicholas Lee Fagan

Subscribers:
6,530
Published on ● Video Link: https://www.youtube.com/watch?v=xab0tXouYso



Category:
Guide
Duration: 2:39
1,968 views
2


To execute a shell script you first need to place it in the /etc/rc.d directory. Then you must edit your /etc/rc.conf file and add the following line:

myscript_enable="YES"

Also, make the script executable by issuing the command chmod +x script.sh. . .
=== Remote IT Support ===
https://linktr.ee/remotetechsupport

=== Music ===
https://linktr.ee/nichproductions

=== Beautiful World ===
https://linktr.ee/beautifulworldtravel




Other Videos By Remote IT Support


2012-11-13Simple Shell Script | Neo Shell Script | Matrix by Nicholas Lee Fagan
2012-10-24NonVisual Desktop Access by Nicholas Lee Fagan | Remote IT Support
2012-10-24Fujitsu Lifebook T4020
2012-10-19Dell D520 Laptop for Sale by Nicholas Lee Fagan
2012-10-04Sony Vaio VGN-S5VP Laptop for Sale by Nicholas Lee Fagan
2012-09-20How to show which version of OpenSSH your running in FreeBSD. by Nicholas Lee Fagan
2012-09-20Configuring SSH on FreeBSD by Nicholas Lee Fagan
2012-09-20How to change the port for SSH in FreeBSD by Nicholas Lee Fagan
2012-09-20Secure SSH Authentication with FreeBSD using the SSH-Keygen command. by Nicholas Lee Fagan
2012-09-19How to Enable Packet Filtering in FreeBSD | pfctl -e /dev/pf: No such file or directory
2012-09-19How to Execute a Shell Script on Reboot in FreeBSD by Nicholas Lee Fagan
2012-09-19Shell Script to Add Users on FreeBSD by Nicholas Lee Fagan
2012-09-19Strobe Light Batch Script by Nicholas Lee Fagan
2012-09-16Simple Power Shell Script You Can Use to Send E-mail with Windows Built-in SMTP Server
2012-09-16Batch Script to Send E-mail Using Blat by Nicholas Lee Fagan
2012-09-16Simple Batch Script to Map a Shared Printer | Batch Scripting by Nicholas Lee Fagan
2012-09-16How to Map a Drive with Credentials | Batch Scripting by Nicholas Lee Fagan
2012-09-16Map a Drive that will be Persistent & Connect on Startup without Issues by Nicholas Lee Fagan
2012-09-16Simple Batch Script To Create a Mapped Drive by Nicholas Lee Fagan
2012-09-16Simple FTP Batch Script to Upload all Files in a Directory by Nicholas Lee Fagan
2012-09-16Ms-Dos FTP Commands by Nicholas Lee Fagan



Tags:
How
to
Execute
Shell
Script
on
Reboot
in
FreeBSD
Example
Scripting
Howto
Programming
.sh
Linux (Operating System)
RedHat
CentOS
Computer
Computers
Engineering
Software
System
Administration
Network
Mac
OS
IT
Information
Technology
Tutorial
Free
Lessons
Advanced
Mac OS (Operating System)