Chkconfig Run Levels

Some services are run by inetd. Once installed, that is it!. Explicitly setting run levels (the 30/70 below are the sequence numbers): chkconfig --level 2345 foobar on chkconfig --level 016 foobar off —. Given as a string of numbers from 0 to 7. it had that “chkconfig” tags in there and was supposed to be used with ” chkconfig -a jetty. server script upon system startup. chkconfig --add mysql And then reboot for it to take effect (or do a /etc/init. The equivalent to chkconfig is sysv-rc-conf we can use this instead of chkconfig for Run-level configuration The sysv-rc-config an easily communicate and managing with "/etc/rc{runlevel}. Note that –level 35 specifies run levels 3 and 5, so following will turn on httpd service for 3 and 5. How to View Current target (run level) in Systemd. Most servers boot into run level 3, which starts the text based login prompt. d Run level 1 /etc/rc2. run chkconfig --add 3. Runlevels are used to specify different configurations of running services. OPTIONS --level levels Specifies the run levels an operation should pertain to. For example, if the symlink for cron in runlevel 3 is S89cron and you uncheck it, sysv-rc-conf will first see if there is an entry in the cache that looks like 3 K nn cron , if so it will use nn for the priority number. Within this directory there is a separate folder for each run level, eg rc0. For example to add a service to startup you would do chkconfig service_name on –level runlevels; systemd – This is the new init system that this post is about. I will keep on updating it as I gather more. You could also check it by the run level symlinks with: # for runlevel symlinks: ls /etc/rc*. [--config run-levels,startval,killval] is optional, and only needed if is not setup for chkconfig. You can set the to on for http like this: chkconfig --level 2345 httpd on It's also a good idea to go to the script for that service in. 4 Placing a service under chkconfig control for default run levels What if you selected the wrong one when messing around with. There’s two ways to fix this, it is up to the readers which one they. There are three method of determining the current runlevel. NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off. The following describes a procedure to set up NIS network name service under Red Hat Linux. (Last year, the foundation was charged with developing Java EE (Enterprise Edition), in the wake of Oracle’s abdication of its stewardship of the project. To serve / meet today’s business critical application performance RHEL 7 is the best Operating system to use, very light weight and container based. In this case, the run levels used are 2, 3, 5. The "chkconfig" utility is responsible for determining at which run levels the utility is started or stopped. The service command starts the repository manager, and the last command tails the wrapper. only runlevel 2, 3, or 4 is executed, not more of them sequentially or in any other order). Disable selinux and shutdown iptables,ip6tables services also on run levels vi /etc/selinux/config ( change SELINUX=enforcing to SELINUX=disabled ) service iptables stop service ip6tables stop chkconfig --level 0123456 ip6tables off chkconfig --level 0123456 iptables off 6. This file is run with root privileges during boot and shutdown so should only be writable by root. OPTIONS --level levels Specifies the run levels an operation should pertain to. $ yum install lighttpd lighttpd-fastcgi $ chkconfig --levels 235 lighttpd on. Given as a string of numbers from 0 to 7. It has the concepts of dependent "units". Many System V UNIX variants use scripts in the /etc/rcN. Linux (and most unix systems) share these same runlevels listed below. Note that only the on, off, and --list commands are supported for xinetd. If it is, chkconfig returns true; otherwise it returns false. As an example, lets enable the Apache web server to start in run levels 2, 3, and 5. sh chkconfig network --level 3 && echo "Network service is configured for level 3" chkconfig network --level 1 && echo "Network service is configured for level 1" #. Special - like windows safe mode. The third command adds nexus to run-levels 3, 4, and 5. Each runlevel is configured to start its specified services when starting and to shut down its services when switching to a different runlevel. For example, --level 35 specifies runlevels 3 and 5. Linux commands multiple choice quiz for anyone who is in college studying Linux, systems administration or other computer courses and want to test themselves on multiple choice questions for exams. Yes you need to and you need to add the links to the required run levels too using chkconfig as suggested already. My init file is not running - init. # chkconfig: 5 96 04 rcx, where x gives run levels, going from 0 to 6 369219: People who viewed this also viewed. This runlevel implementation vary across many Linux distribution. d All startup programs in runlevels are links to /etc/init. Instead, you might just want to turn the flag on or off for a particular run level (for a particular service). It is given as a string of numbers from 0 to 6. Adding and quiting services with chkconfig This implementation of chkconfig was inspired by the chkconfig command present in the IRIX operating system. /sbin/init 0 is the same as shutdown -h now /sbin/init 6 is the same as shutdown -r now Booting into different Run Levels, N: At LILO prompt: linux N linux single is the same as linux 1 At GRUB prompt, type a (stands for append), then add N after the prompt: grub append> ro root=LABEL=/ N grub append> ro root=LABEL=/ single is the same as grub. Start and stop the API Gateway service. The chkconfig tool is used in Red Hat based systems (like CentOS) to control what services are started at which runlevels. Now you are able to manipulate with run levels. You can set it to run in run levels 2-5 by using the chkconfig -level 2345 iptables on command. d which control the services to be started and stopped when the operating system restarts or transitions between run-levels. By default, on and off options affect in run levels 2, 3, 4 and 5. S is sometimes used as a synonym for one of the levels. Runlevel command retrieves information from the /var/run/utmp to locate the runlevel record. This is how it is done. We can start the GUI right now ( as long as there is a GUI installed) by running ‘systemctl isolate graphical. The default runlevel for an RHEL system is defined within the /etc/inittab file. d for examples of services that start up during the boot, and /etc/rc. 0 - halt 1 - single mode 6 - reboot Debian distribution has it runlevel 2-5 dedicated to full multi-user with graphical managers and. Init starts daemons by using scripts, where each script starts one daemon, and where each script waits for the previous script to finish. # # On systems using svsvinit, configure the icegridregistry to start at the # default run levels: # sudo chkconfig icegridregistry on # # On systems using systemd, start icegridregistry with the multi-user target # sudo systemctl enable icegridregistry. As an example, to have apache start at runlevels 3, 4, and 5, you would run: chkconfig --levels 345 httpd on On a gentoo system you would use the rc-update tool, and run these commands: rc-update add apache2 default. On Linux systems, run levels are operational levels that describe the. d Run level 6. commands): # unzip apex_listener. d Run level 3 /etc/rc4. Run levels 2 through 5 are multiuser modes with various levels of capabilities, but run level 4 is not currently used. The service command starts the repository manager, and the last command tails the wrapper. There are different run levels that init script runs as configured, those run levels are described below. • User administration, creating users, groups and home directories. A list of the braille display drivers which have been built as dynamically loadable shared objects, and, therefore, which can be selected at run-time. Next, you tell your Linux system that the iptables script should be run when the system gets to run levels 2 through 5 by issuing this chkconfig command: chkconfig --level 2345 iptables on Again, this command tells your Linux system that you want the iptables script to be run whenever the system goes into one of these runlevels. Notice that you must have 2 - signs before level. Install SNMP Service/Daemon on CentOS Posted by Curtis K in Administration , CentOS 5 , CentOS 6 , Networking Jul, 23 2012 3 Comments In this guide I’ll be explaining how to install the SNMP service on CentOS. Third question is how to change the start/stop runlevels for apache-htcacheclean. Start and stop the API Gateway service. Run the following command to add service for chkconfig management #chkconfig --add myservice; And now you have a service called myservice. OPTIONS --level levels Specifies the run levels an operation should pertain to. Why in those 4 dirs? Will all scripts with - in the chkconfig entry be started at those 4 lev. sh is missing the lines required by chkconfig to create the run levels. d configuration files. chkconfig is a command for checking and updating runlevel information for system services. This particular line defines that on runlevels 2,3,4 and 5, this subsystem will be activated with priority 95 (one of the lasts), and deactivated with priority 05 (one of the firsts). Since we're not familiar with how /sbin/chkconfig works, we weren't sure if this would be the behavior with your code. 5 - is when GUI desktops are loaded such as Gnome or KDE. --level levels Specifies the run levels an operation should pertain to. 3 Shutting down the System 3. On CentOS you can select the System -> Administration -> Server Settings -> Services menu option or run the following command: system-config-services. d Run level 2 /etc/rc3. There are different run levels that init script runs as configured, those run levels are described below. Startup Scripts The System V scripts in the run level directories are usually from IT 340 at New Jersey Institute Of Technology. Command to list All Services in run-level. 10 hours ago · chkconfig Level 表Level 說明Level 0 關機Level 1 單人模式. Default Linux User Accounts Ahead of time info: I am running Redhat 7. This output tells you that iptables will start in run levels 2-5. chkconfig command is mainly used to set given service or daemon run level. • User administration, creating users, groups and home directories. Since we're not familiar with how /sbin/chkconfig works, we weren't sure if this would be the behavior with your code. The former permits the system to run all services except for a GUI. Given as a string of numbers from 0 to 7. When a new service is added, chkconfig ensures that the service has either a start or a kill entry in every runlevel. The opposite is also true. Add or Remove a Service at a particular run-level 'chkconfig' command when executed with --add or --del options, it would impact all the run-levels from 2 through 5. AIX does not follow the System V R4 (SVR4) run level specification, with run levels from 0 to 9 available, as well as from a to c. Ldirectord is run by heartbeat. hello forum, to start any service in chkconfig there are run level 1 to 5. OPTIONS --level levels Specifies the run levels an operation should pertain to. If nn is 20, then it will use 80 (100 - 20), since that is typically the way that the priority numbers are used. This is defined in /etc/inittab file. type "chkconfig -l named", this will return a response similar to "named 0:off 1:off 2:off 3:on 4:off 5:on 6:off". You can set it to run in run levels 2-5 by using the chkconfig -level 2345 iptables on command. Often times you may have an application that needs to be boot strapped or started automatically via an Init script. Use the attached zabbix_server_script_conf. Adds the init script to chkconfig and sets it to on for run levels 2, 3, 4, and 5. Linuxconf has a module for controlling the behavior of different services. In simple words it is used to list current startup information of services or any particular service, updating runlevel settings of service and adding or removing service from management. d/tomcat5 does not have the header with run levels to add to the chkconfig as a system-wide service. The numbers after the letters (01 through 99) indicate the order in which the processes are run (or stopped). Change run levels in Debian and Ubuntu Linux. Expected Results: Mailman should have been listed as on for run levels 3, 4 and 5. target is a symbolic link to multi-user. The first line here has some numbers ahead chkconfig: like 235, 29 and 88. the defaults. com/eti9k6e/hx1yo. Although these are comments, they are used by chkconfig command and must be present. Instead, you might just want to turn the flag on or off for a particular run level (for a particular service). For example, --level 35 specifies runlevels 3 and 5. /sbin/service postfix start and see if it's running with a quick ps ax command. You can also use the Service Configuration tool to start Samba automatically, although frankly, the chkconfig command is easier to use. d Run level 2 /etc/rc3. El da hoy les vengo a compartir un nuevo mtodo para tener internet gratis con. turn OFF firewall service from all run levels before that check $ chkconfig --list iptables if they are ON @ runlevels 2,3,4,5 then $ chkconfig --levels 2345 iptables off. the defaults. B: - The init process is the last step in the boot procedure and has pid of '1'. type "chkconfig -l named", this will return a response similar to "named 0:off 1:off 2:off 3:on 4:off 5:on 6:off". chkconfig --del test Turn on & Turn off service. It is given as a string of numbers from 0 to 6. [[email protected] ~]# chkconfig httpd on --level 345. It provides a concept of “targets”, as in the table above. sh” to have it added to the run levels. Learn to shut down or reboot your Linux system, warn users that the system is going down, and switch to a more or less restrictive runlevel. See the talk page for more information about the page's status. systemd is the first process started and it reads different targets and starts the processes specified which allows the operating system to start. Given as a string of numbers from 0 to 7. Managing Linux services with chkconfig Page 4 # chkconfig --del isdn will remove a service from chkconfig control by removing the symlinks in all of the run level directories, which effectively turns the service off. I think the problem is that the step to create the needed run levels is missing from the Perfect Server Howto. target and runlevel5. To disable SSH service in run levels 2,3 and 4 : # chkconfig --level 234 sshd off. You should see several new processes. Run level 5 is emulated by graphical. which displays on or off. target (and runlevel5. On Linux, you can do the following to find out which boot (init) levels crond will run up in: chkconfig --list crond It should look like this: crond 0 ff 1 ff 2 n 3 n 4 n 5 n 6 ff If it does, then you need to look through your boot logs (/var/log/dmesg and/or /var/log/messages) to find out what's. Many Unix and Linux distributions use init scripts to start daemons in the same way that Unix System V did. You can turn that service off by entering the reciprocal of the previous command show below: [[email protected] root]# chkconfig --level 5 lisa off [[email protected] root]#. Different run levels exist to allow administrators to fix, repair, modify, enhance security, reboot or turn off the system. d Run level 2 /etc/rc3. It is given as a string of numbers from 0 to 7. /sbin/chkconfig --add postfix /sbin/chkconfig --level 35 postfix on. You can check this by running the. Those are the runlevel programs, executed from the run level directory as defined by your run level. For example, to enable to SSHD service at runlevels 3 & 5, run: # chkconfig --level 35 sshd on 6. Note that only the on, off, and --list commands are supported for xinetd. # chkconfig --add ora_db_start-- you can see that the script ora_db_start it contains chkconfig: 35 99 10 where 35 is the 3 and 5 runlevels which should be on and other run levels should be off, 99 is the Start sequence and 10 is the kill sequence. target (and runlevel5. This is geared toward a small intallation with only one domain. On many Linux systems, you can use the chkconfig program to install the UnForm server as a service. Networking One of the key elements of connecting to different systems in the network configuration involved; A Network is a set of hardware devices connected together, either physically or logically to allow them to exchange information. chkconfig ntpd off - disables 'ntpd' in levels 0-6 Note: Use 'chkconfig' from the shell or a script Note: Use 'ntsysv' from the shell in interactive mode. Changes to the run levels require root access. /sbin/service postfix start and see if it's running with a quick ps ax command. d Run level 1 /etc/rc2. By default, on and off options affect in run levels 2, 3, 4 and 5. This is how most servers run as it allows external communication but doesn't use a graphical user interface. The command line tool chkconfig (usually located in the /sbin directory) can be used to list which services get started at boot time. Linux commands multiple choice quiz for anyone who is in college studying Linux, systems administration or other computer courses and want to test themselves on multiple choice questions for exams. Each defined run level should have an rcX. How to View Current target (run level) in Systemd. In general, users operate Red Hat Enterprise Linux at runlevel 3 or runlevel 5 — both full multi-user modes. Now you are able to manipulate with run levels. d Run level 5 /etc/rc6. /sbin/chkconfig --list | grep '3:on'. Larry Martell But at what run levels is my question. # vi check1. who -r command:# who -r run-level 3 Aug 27 10:12 last=5. Run levels:-Run levels define what processes or services to run automatically while the system boots up. Removed from chkconfig management, and any symbolic links in /etc/rc[0-6]. In this case at the end of Chef run we expect the Service A to be enabled on run_level 2 & 3 and disabled for run_level 1. d 3 minute read Linux services can be started, stopped and reloaded with the use of scripts stocked in /etc/init. Managing Linux services with chkconfig Page 4 # chkconfig --del isdn will remove a service from chkconfig control by removing the symlinks in all of the run level directories, which effectively turns the service off. If you modify the file afterwards, you will need to stop and start multipathd again for the changes to take effect. A blog about scalable infrastructure, IaaS, PaaS and SaaS. /sbin/chkconfig --level 5 httpd on A number of graphical tools are also available for administering services. d, and so on. The chart below shows a basic outline of the standard init levels. Install SNMP Service/Daemon on CentOS Posted by Curtis K in Administration , CentOS 5 , CentOS 6 , Networking Jul, 23 2012 3 Comments In this guide I’ll be explaining how to install the SNMP service on CentOS. conf are created. target and runlevel5. who r command is used to display the current system runlevel and displays the from IT INT 2680 at Prince George's Community College, Largo. This is an archived article or section. CentOS / RHEL 7 : How to change runlevels (targets) with systemd Run level 3 is emulated by multi-user. 查看当前 run level who -r runlevel 2. chkconfig command is used to start, stop and view the status of all services running on the system. #!/bin/bash # chkconfig: 345 95 20. JS applications with a built-in load balancer. The first line here has some numbers ahead chkconfig: like 235, 29 and 88. d/ This will dislplay the services run at each run level as well. And that's it. This video helps to configure services for starting and stopping them automatically when the Operating System boots using chkconfig Command. d command is used:. The first argument in the command is the package you want to affect and the second defines whether you want it on or off. How to install / create a new service on Red Hat (init. Looking at mysqd, it has: # chkconfig: - 64 36 and I see a S64mysqld link in rc 2, 3, 4, and 5. The command line tool chkconfig (usually located in the /sbin directory) can be used to list which services get started at boot time. For example, --level 35 specifies runlevels 3 and 5. the defaults. My init file is not running - init. Loading Unsubscribe from Ed Walsh? Cancel Unsubscribe. d and K25myservice in the other run levels (rc[016]. A Linux tool that can help you manage all the services is called chkconfig. Schlegel pn, cohen j, goldstein m, Posted: 2019-11-02 04:10. pl is run, the script gentoo-backuppc and the init conf files gentoo-backuppc. Below is a quick and dirty sample Init script to help you get on your way. Run "service crond status" to be sure the cron service is running. d service, run levels, chkconfig, etc. target (and runlevel5. d Run level 1 /etc/rc2. Next, you tell your Linux system that the iptables script should be run when the system gets to run levels 2 through 5 by issuing this chkconfig command: chkconfig --level 2345 iptables on Again, this command tells your Linux system that you want the iptables script to be run whenever the system goes into one of these runlevels. chkconfig --level 3 5 httpd off The command above will turn off httpd service in run levels 3 and 5. I hope somebody can help :). what are run levels in chkconfig – LinuxQuestions. Ubuntu has got it's own tools for telling the system which services to automatically start at the different run levels, none of them unfortunately is chkconfig which happens to be my favourite tool on Red Hat derivative distributions if you are like me and like using what you are used to by typing the following into your bash shell you can use chkconfig instead of the Ubuntu tools. The -level option can be used to specify which run level should be affected. All configurations are tested and working very well. Get YouTube without the ads. On supported versions of Red Hat and Fedora to ensure that heartbeat starts up (on run-levels 2, 3, 4 and 5) and that ldirectord does not start on reboot up the chkconfig command is used: /sbin/chkconfig --level 2345 heartbeat on /sbin/chkconfig --del ldirectord On Debian the update-rc. run chkconfig --add 3. Each number is a run level, there is a key "on" or "off" that will dictate weather that service is on or off at that particular run level. chkconfig --add FMEServerSMTPRelayStart. 'chkconfig' command allows you to configure that newly added service to start after every system start up automatically. To enable SSH service in run levels 2,3 and 4 : # chkconfig --level 234 sshd on 9. Now, on to configuration. which run levels should by default run the init script with a start (stop) argument to start (stop) the services controlled by the init script. This setting can be found in the file /etc/inittab. - Cbhihe Oct 3 '14 at 10:01. Unfortunately no, the chkconfig command does not override the init script. The “–level” flag allows auto-start to be limited to specific run levels. And after firing this chkconfig vncserver off still vncserver is running in the same PID. When prompted “is this ok” type y. The chkconfig tool defaults to changing the settings for runlevels 2, 3, 4 and 5. To configure Samba to start automatically for levels 3 and 5, follow these steps: Select the SMB in the list of services. will show you all the services and what run levels they come up in. You can check this by running the command: # chkconfig --list httpdOne can also disable the service by using the off flag as shown below:. Setup Master-Slave DNS Server Using “Bind” Tools in RHEL/CentOS 6 Domain Name Server (DNS) used for name resolving to any hosts. The first line here has some numbers ahead chkconfig: like 235, 29 and 88. when you run this command into your LINUX box so your APACHE services only starts when Box is running with one of mentioned run level. B: - The init process is the last step in the boot procedure and has pid of '1'. Use the chkconfig utility to make Tasktop Integration Hub start at system startup (you may wish to change the run levels in this command) $ chkconfig --add tasktop $ chkconfig --level 2345 tasktop on. Change run levels in Debian and Ubuntu Linux. If you want to have your scripts run at startup and shutdown, there is a specific way of doing it using chkconfig (or /sbin/chkconfig). It is given as a string of numbers from 0 to 7. d/ directories to control which services should be started in run level N. Some services are run by inetd. Next we issued "chkconfig --level 2345 ntop off". d for the actual started services for the different run levels (assuming Debian runs like RedHat / Fedora; I don't have a Debian image here to check at the moment). 1: Bu servisi seviye 6’da da açmak için “chkconfig – – level 6 bluetooth on” komutunu kullanalım. In this case the service will start at boot for runlevels 3 & 5 which is correct for most systems. /sbin/chkconfig --levels 345 httpd on; AWStats. Use the chkconfig command to update the configurations for the new system service. #chkconfig --level 123456 iptables off. The very first system involved in the boot process is the BIOS (Basic Input Output System). I have upgraded X to X. Init Run Levels -1. How-To: Managing services with update-rc. The chkconfig command with the --level switch indicates that some action needs to be done at the runlevels entered as its values. chkconfig jboss-catissue off chkconfig jexec off turn on tomcat script with chkconfig tomcat off Right now the script in /etc/init. Run ifconfig. As mentioned previously, the different runlevels are configured to run a specific set of services. How to: Use chkconfig, or keeping your services running on a new run level OK, so I didn't take my own advice and made sure that all of my services where set to the run on the correct run levels before I switched run levels and rebooted the servers. There’s one more step to run to make OBIEE start automatically at boot up: sudo chkconfig --add obiee. d and K25myservice in the other run levels (rc[016]. chkconfig servicename on For Debian based distributions (Ubuntu) execute (as root): update-rc. Run Levels and inittab – RHEL Published on August 27, 2008 by advait Now that we have already seen the boot sequence and GRUB file for linux, lets now check what is run level and one of the important file /etc/inittab which is used during booting linux. You can use the chkconfig tool to turn on/of and otherwise configure what services run at what levels. To turn sendmail on for run levels 3 and 5: su -c 'chkconfig --level 35 sendmail on' A full list of chkconfig options is available on the manual page: man chkconfig. In this case at the end of Chef run we expect the Service A to be enabled on run_level 2 & 3 and disabled for run_level 1. Linux run levels details After the Linux kernel has booted, the init program reads the /etc/inittab file to determine the behavior for each runlevel. chkconfig --list supervisord chkconfig --level 4 supervisord off chkconfig --level 3 supervisord on The nginx init. You can also specifically check whether it is configured for a particular run level or not. The attached file contains run levels 2,3, and 5. If it does not have run levels 2345, edit it and put it there (though mine had, in the stock F8 distro). to make ur apache run on level 2,3 and 5. As a result any Linux system using systemd system management daemon now relies on systemctl command to change runlevel or to be more precise to change the target. For a primer on runlevels, check out our tutorial: Linux chkconfig Command Examples for Red Hat and CentOS | Liquid Web. sudo chkconfig –add nexus # add nexus as a system service. d which pertain to it are removed. The multipath. Every upgrade seems to reset the run-levels for bind to being enabled for levels 2345 which breaks the DNSSEC. For all of you who have servers out there, you know a reboot is sometimes unavoidable, and in most modern systems it is as simple and painless as sudo reboot now or on some other systems sudo shutdown -R now (I think?!?), anyway, sometimes these machines reboot on their own, maybe a software update went through, or some program thought it funny to send the reboot command, in any case it does. Add or Remove a Service at a particular run-level 'chkconfig' command when executed with --add or --del options, it would impact all the run-levels from 2 through 5. Specifies the run levels an operation should pertain to. If you have multiple agents to install, see Install Multiple Endpoint Operations Management Agents Simultaneously. B: – The init process is the last step in the boot procedure and has pid of ‘1’. For example, to enable to SSHD service at runlevels 3 & 5, run: # chkconfig --level 35 sshd on 6. So in our example, "i S nn cron". In order to turn on or off any particular service at a particular run-level, you can use: chkconfig --level Example:. This option adds a new service for management by chkconfig. run chkconfig --add mailman as root 3. " There are times when you may want some or all installed services to run. chkconfig supports a --type argument to limit actions to only a spe- cific type of services, in the case where services of either type may share a name. Now that the service scripts are in place, restart the machine and check they work: sudo shutdown -r now. 1 - Script Services Config (Run Level, Start and Kill Position) Each service which should be manageable by chkconfig needs two or more commented lines added to the header of the init. For example, if you're in the GUI (run level 5) and you run that command, iptables will be off ONLY in run level 5. org – Sep 20, 2004 · what are run levels in chkconfig. A runlevel defines the state of the machine after boot. Changes to the run levels require root access. chkconfig: 345 86 16. all run levels are forming a sym link to /etc/rc[2-5]. Run levels:-Run levels define what processes or services to run automatically while the system boots up. In the example above, mysqld is set to not start at boot for any run level. When a new service is added, chkconfig ensures that the service has either a start or a kill entry in every runlevel. To make sure cron is set to run after poweroff or reboot run " chkconfig crond --list " Run levels 2, 3 and 5 should be on. Do need to create oratab file too for oracle 10g2 ? I have changed flag to Y. d/' or '/etc/init. Tell Linux to autostart/stop the service On Oracle Linux 5 and 6 run: # chkconfig --add dbora # chkconfig dbora on On Oracle Linux 7 run: # systemctl enable dbora Edit /etc/oratab In /etc/oratab, change the autostart field from N to Y for any databases that you want autostarted. You can think of these as different levels of safe-mode and normal mode. d directory hierarchy by relieving system administrators of the task of directly manipulating the numerous symbolic links in those directories. ~]# chkconfig abrtd on --level 35 The service will be started the next time you enter one of these runlevels. Remember that all resource files activated at different run times are in different rc. #!/bin/bash # chkconfig: 345 95 20. > > Are they the order in which this service is started relative to all > services? Or are they the process priority to be given when the process > is started or stopped?. sh” to have it added to the run levels.