Web热贴推荐. 从测试小白到测试大神,你们之间隔着这篇文章; MongoDB持续灌入大数据遇到的一些问题; 软件测试达人网站 WebThe ckconfig man page explains the header of the script: > This says that the script should be started in levels 2, 3, 4, and > 5, that its start priority should be 20, and that its stop …
10 insserv Command Examples for Linux System Init Scripts - The Geek Stuff
WebJun 10, 2010 · So chkconfig --del baseRhel64 first, then alter the script so that chkconfig line reads # chkconfig: 345 10 93 Your script would then look something like this, with start and stop function names swapped: WebSep 26, 2016 · Now that you can manage your scripts using chkconfig, here’s a tip that will save you a little bit of typing. When running an rc script to restart a daemon or what have you, the path is pretty long: [root@usr-3 rc2.d]# /etc/rc.d/init.d/sshd restart or you could type this instead: [root@usr-3 rc2.d]# service sshd restart Hey, it’s 9 keystrokes less! flower delivery ross ohio
How can I make a script in /etc/init.d start at boot?
Enable a service to start on boot with the chkconfig [service] on command. Next, confirm that the service is on using --list. The on option affects runlevels 2, 3, 4, and 5 and starts the ntpd service on boot on these runlevels. To enable a service on one or multiple runlevels only, run: For … See more To list all services, execute the command without options or run: Using --list with the chkconfig command displays the status of all available services … See more To find all enabled services (in one or multiple runlevels), execute combine chkconfig --list with the grep command: To find all disabled … See more Disable a service from starting at system boot with the chkconfig [service] offcommand: Even though the offvariable also affects runlevels … See more To show the startup configuration of a particular service in all runlevels, run chkconfig --listand specify the service. For example, check the status of the ntpd service in all … See more WebMay 26, 2024 · To set the script to run at startup use chkconfig –add scriptname.sh, for example: chkconfig –add starttftp.sh. Reboot the vCenter appliance to test the script is running. If successful the atftpd service will be started and port 69 allowed, you can check these with service atftpd status and iptables -nL grep 69. WebFeb 12, 2010 · The first line tells. chkconfig what runlevels the service should be started in by default, as well as the start and stop priority levels. If the service should not, by default, be started in any runlevels, a - should be used in place of. the runlevels list. The second line contains a description for the. greek theatre playwrights