Where is rc.local




















Learn more. Asked 9 years, 1 month ago. Active 1 year, 5 months ago. Viewed k times. The header looks like this:! Improve this question.

Gilles 'SO- stop being evil' k gold badges silver badges bronze badges. Emanuel Berg Emanuel Berg 6, 5 5 gold badges 36 36 silver badges 62 62 bronze badges. I don't know if this is the "official" purpose of the file, but I found out that I can use the file for what should happen on startup, and would require super user access, but without having to provide the password. That would typically involve colors, the keyboard, and other such stuff. Check out some examples here. Add a comment.

Active Oldest Votes. Under Linux, the runlevels are by convention : S while booting, 0 while shutting down, 6 while rebooting, 1 in single-user mode and 2 through 5 in normal operation. Improve this answer.

Pablo A 1, 17 17 silver badges 26 26 bronze badges. Gilles 'SO- stop being evil' Gilles 'SO- stop being evil' k gold badges silver badges bronze badges. I found out today that on current FreeBSD, rc. Definitely not after all normal system services are started. I wanted a beep when sshd access to a headless machine would become available, and rc. Since the original question is about Debian, this comment is probably irrelevant for the OP. MvG Thanks for the information. Hopefully this summary is more intuitive than technical.

Community Bot 1 1 1 silver badge. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Explaining the semiconductor shortage, and how it might end. Does ES6 make JavaScript frameworks obsolete? Featured on Meta. Now live: A fully responsive profile. Linked Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled.

Accept all cookies Customize settings. If autoboot is not set, when going from single-user to multi-user mode for example, the script does not do anything. It has several possible options: open will allow anyone in client will try to protect just this machine simple will try to protect a whole network closed totally disables IP services except via lo0 interface UNKNOWN disables the loading of firewall rules filename will load the rules in the given filename full path required.

Useful when dmesg 8 buffer in the kernel no longer has this information. Most scripts require little more than the following. The user may access this functionality through additional commands. The script may list and define as many commands at it needs.

Please direct any comments about this manual page service to Ben Bullock. Privacy policy. The rc utility is the command script which controls the automatic boot process after being called by init 8. The best way to handle rc. See rc. When an automatic reboot is in progress, rc is invoked with the argument autoboot. The following is a minimal rc. Copyright: The copyright notice of this manual page is here plain text.

Go to:. Scripts that are "placeholders" to ensure that certain operations are performed before others. In order of startup, these are:.



0コメント

  • 1000 / 1000