Chkconfig Run Levels

Howto Install Tomcat on Linux ? Enable it for all the Run-levels # chkconfig –add tomcat # chkconfig tomcat on. chkconfig --level 2345 httpd on. # chkconfig httpd --add # chkconfig httpd on--level 2,3,5. Chkconfig can also enable or disable a service at particular runlevels using the "--level" option. Removed from chkconfig management, and any symbolic links in /etc/rc[0-6]. The default runlevel for an RHEL system is defined within the /etc/inittab file. chkconfig - This utility is used to add, modify or delete the run level information in the SysVInit system. you can defined your values as per your requirement. Hence ,we will create symbolic links of the dbora script in the rc. d/ corresponding to the target run level. Use the command " service crond start " to start the service if it is not running. The latter allows all services including a GUI. d which pertain to it are removed. • TCP/IP Network configuration on Linux server and windows servers. Now that the service scripts are in place, restart the machine and check they work: sudo shutdown -r now. who -r command:# who -r run-level 3 Aug 27 10:12 last=5. Each defined run level should have an rcX. g # chkconfig: 2345 55 25 The 2345 part means the service will be enabled at run levels 2,3,4 and 5. Understand what Systemd is, how to enable and disable services, switch to different runlevels editing inittab file. d/ (for run level 3), /etc/rc5. Create Start up script for run levels 2, 3, 4 and 5. If you are using a GUI window manager, you probably have another graphical application to see this information. Run Level / chkconfig Post by pschaff » Fri Mar 18, 2011 7:34 pm I don't know any way to do it except service by service, and it is doubtful you really want to shut down [i]all[/i] services except sshd; for instance, most systems will probably want network, and likely others such as crond and anacron running. ) Name the two run levels normally used to run a Linux-based computer, and describe the difference between the two run levels. --no-redirect When chkconfig is run on a system that uses systemd as its init system, chkconfig will forward commands to systemd if a systemd service file exists for it. js app (ghost) in the background continuously with Supervisor (Supervisord) the file to chkconfig list. This is the first screen you will see when you boot, and although the look varies from system to system, the BIOS initializes your hardware, including detecting hard drives, USB disks, CD-ROMs, network cards, and any other hardware it can boot from. log to verify that it. This means that you will need to manually start the service. So in our example, "i S nn cron". Related tutorial can be accessed from following link. 3 Version 1. Add the header information mentioned above to an init script 2. The Postfix configuration file is main. Possible values for type are sysv and xinetd. For right now I'm just playing around with the server and when I confident that it's running well then I'll take Teamspeak off the Windows-box I have and run it on Mandrake. what are run levels in chkconfig. For a primer on runlevels, check out our tutorial: Linux chkconfig Command Examples for Red Hat and CentOS | Liquid Web. BIOS, MBR, GRUB and Kernel processes were kicked up before hitting init process as part of Linux booting process. For more explana. In this article we are going to see RHEL 6 vs RHEL 7 Difference Between Previous and Newer Version. To get vsftpd to start on the most common run levels (3,4,5), run the following command: sudo chkconfig vsftpd on Verify the “on” status by checking the chkconfig output for vsftpd: chkconfig --list vsftpd. d, and so on. Please feel free to respond back in comments in case you want me to add some more. 在linux作業系統下,經常需要創建一些服務,這些服務被做成shell腳本,這些服務需要在系統啟動的時候自動啟動,關閉的時候自動關閉。. Different run levels exist to allow administrators to fix, repair, modify, enhance security, reboot or turn off the system. Larry Martell But at what run levels is my question. Start GUI In CentOS. d Run level 3 /etc/rc4. Level 0 forces a total system shutdown. SAP Solutions. 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. ’ “init” is responsible for starting system processes as per defined. It's also a good idea to add the path to the mysql bin directory to the default path of users. # chkconfig --list | grep joystick 6. You can use the material in this article to study for the LPIC-1: Linux Server Professional Certification, or just to learn about shutting down, rebooting, and changing runlevels. So, just to note, i run sudo systemctl set-default multi-user. here the First number is the runlevels it's required to run on combined into a string. Si on veut empêcher un service de se lancer, il faut utiliser la commande chkconfig avec l'option off. You should see several new processes. I hope that this tutorial was informative to you and thank you for visiting our website. runlevel -- find the current and previous system runlevel. 3 Change Run Levels and Shutdown or Reboot the Linux System August 23, 2013 by The Urban Penguin In this lesson, we have a few videos for you to look at and we are starting to really understand how Linux works. 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. For example, if the nfsserver service doesn’t exist in the chkconfig control, no nfsserver service startup files would be present under /etc/rc. It provides a concept of “targets”, as in the table above. php on line 143 Deprecated: Function create_function() is. The foundation. chkconfig provides a command-line tool for maintaining the /etc/rc[0-6]. Find out why Close. To configure Samba to start automatically for levels 3 and 5, follow these steps: Select the SMB in the list of services. Generally you should start iptables at rc levels 3, 4 and 5. When this problem first occurred I hit Google, and was still lost. Why am I getting errors in splunk 6. In this case the service will start at boot for runlevels 3 & 5 which is correct for most systems. d hierarchy, however, this version directly manages the symlinks in /etc/rc[0-6]. script contains comments that provide instructions for using this technique. The script will reside in /etc/init. After having this brief idea about run level we will see the content of /etc/inittab file /etc/inittab. d directory hierarchy by relieving system administrators of the task of directly manipulating the numerous symbolic links in those directories. ~]# chkconfig abrtd off --level 24 The service will be stopped the next time you enter one of these runlevels. su -c 'chkconfig --level 2345 sendmail off' This stops sendmail from being started in run levels 2,3,4, and 5. 4 given below. /sbin/service postfix start and see if it's running with a quick ps ax command. For obvious reasons, this run. # Paths and variables and system checks. d/ directory will be updated to contain the new runlevel. To use the default run-levels defined in the scripts use the -d option. To list the state of all the services in different run levels : # chkconfig --list 8. In the good old days you would use chkconfig to see if a service was enabled for a run level. El da hoy les vengo a compartir un nuevo mtodo para tener internet gratis con. Only one runlevel is executed on startup; run levels are not executed one after another (i. For example, --level 35 specifies runlevels 3 and 5. If we wanted the HTTP service to start up when we at runlevel 5 we would issue the following command: /sbin/chkconfig --level 5 httpd on. In this case the service will start at boot for runlevels 3 & 5 which is correct for most systems. This is configured in the scripts, /etc/rc. If you are using a GUI window manager, you probably have another graphical application to see this information. Optimized and resilient platform for SAP applications and databases. The run levels are defined by files in the file system. Configuring VNC The Oracle Universal Installer requires an X environment to run on Linux servers. The Red Hat Customer Portal delivers the knowledge, expertise, and guidance available through your Red Hat subscription. This is defined in /etc/inittab file. 6 container, and upon start up nginx is not running: [[email protected] /]# ps aux | grep nginx root 124 0. Turn on or off services: # chkconfig foo on # chkconfig foo off # chkconfig --level 2 foo on. chkconfig: 345 86 16. try rebooting. The 'chkconfig' command all by itself will display all available services in every run level, like so: # chkconfig –-list acpid 0:off 1:off 2:off 3:off 4:on 5:on 6:off anacron 0:off 1:off 2:on 3:on 4:on 5:on 6:off apmd 0:off 1:off 2:on 3:on 4:on 5:on 6:off crossfire 0:off 1:off 2:off 3:off 4:off 5:off 6:off. Run level 6 shuts down the system, closing necessary applications and daemon. Every upgrade seems to reset the run-levels for bind to being enabled for levels 2345 which breaks the DNSSEC. Given as a string of numbers from 0 to 7. So has anyone ever seen or written an init script for Universe on RHEL 5 or 6. Introduction Signal is an end-to-end encrypted communications application for Android and iOS similar to WhatsApp but open source. The Postfix configuration file is main. Now, on to configuration. After having this brief idea about run level we will see the content of /etc/inittab file /etc/inittab. Unix System V-style implement conventionally 7 runlevels. On other distributions, or to manually set up the startup scripts, create the proper links in the appropriate run level directory. It has the concepts of dependent "units". My init file is not running - init. d con- figuration files. d Run level 2 /etc/rc3. If your default run level is 3 then you should use 3 in above command. If used the run-levels refers to the runlevels to add the service to as 'on', startval refers to the start priority, and the killval refers to the stop priority. Run Level / chkconfig Post by pschaff » Fri Mar 18, 2011 7:34 pm I don't know any way to do it except service by service, and it is doubtful you really want to shut down [i]all[/i] services except sshd; for instance, most systems will probably want network, and likely others such as crond and anacron running. # chkconfig --level 35 httpd on The "-list" option displays all the run levels a specific service is associated with. run chkconfig --add mailman as root 3. and the I added tss by "chkconfig --add tss" but Teamspeak doesn't start up right. Changes to the run levels require root access. d/ and whether they are set to on|off|etc for each linux run level. [[email protected] root]#chkconfig -level 35 vncserver on. 3 trying to enable boot-start on Redhat? 0. d service, run levels, chkconfig, etc. Let's take a look at the configuration lines that tell your system what it's supposed. Now update the run-levels: $ chkconfig tomcat --level 2345 on. This runlevel does not, however, start the network. On RedHat based systems (RH, YDL, Fedora, etc) then you'll use chkconfig to configure everything. Run levels A run level is a state of init and the whole system that defines what system services are operating. For a primer on runlevels, check out our tutorial: Linux chkconfig Command Examples for Red Hat and CentOS | Liquid Web. CentOS / RHEL 7 : How to change runlevels (targets) with systemd Run level 3 is emulated by multi-user. NetBackup does not automatically start at boot time after an attempt to unofficially migrate NetBackup System V init script to systemd service unit. Specify a value that corresponds to a multiuser mode, with networking turned on. When you use chkconfig to enable a service, the service is immediately started. If used the run-levels refers to the runlevels to add the service to as 'on', startval refers to the start priority, and the killval refers to the stop priority. SysV Init Runlevels Red Hat Enterprise Linux 6 | Red Hat Customer Portal. defines the run levels where the script should be started (stopped) by default. Instead of chkconfig, Debian provides the update-rc. 1 103292 832 ? S+ 02:15 0:00 grep nginx Looking at the chkconfig list it should have the proper run levels set:. Setup Master-Slave DNS Server Using “Bind” Tools in RHEL/CentOS 6 Domain Name Server (DNS) used for name resolving to any hosts. sudo chkconfig –levels 345 nexus on # start the nexus service on boot for run levels 3-5 (Multi-User Mode with Networking up to X11). chkconfig --add test Delete service called test. d – Multi-User Mode – boot up in text mode. 2 is going to be system dependent. 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. 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]#. # chkconfig: 5 96 04 rcx, where x gives run levels, going from 0 to 6 369219: People who viewed this also viewed. See this Wiki for a detailed description. This is an archived article or section. Find out why Close. target symbolic links. How do changing run levels affect us or our users? If you are moving to higher run levels, you may make additional services available to users, while moving to a lower run level will causes to services (daemons) to become unavailable. #!/bin/bash # chkconfig: 345 95 20. This happens at every boot as processes are started at different run levels. You can check this by running the command:. The latter allows all services including a GUI. Run Level 5 replaced by graphical. [email protected]:~#chkconfig httpd on To check the web server in command line [email protected]:~#elinks httpd://linuxstorages. d script that I installed contains this line: chkconfig: - 86 16 What does the - mean for the runlevel here? it means you have to replace the dash with the levels or keep as is to be set by chkconfig. chkconfig_info( file ) If a file has a chkconfig: section specifying the runlevels to start in and the orders to use, return an array containing the levels (as array ref), start order, stop order and description. This option adds a new service for management by chkconfig. chkconfig - will list all the registered services and display thier status at each different run level. If used the run-levels refers to the runlevels to add the service to as 'on', startval refers to the start priority, and the killval refers to the stop priority. I will update and add new files time-to-time. Never mind, I got it, reading the man page carefully tells me that if you use chkconfig to turn a service on, it will be on for runlevels 2, 3, 4, and 5, unless you use --level, in which case it will turn on for whatever levels you asked for, even if they include 1, 2, or 6. It is given as a string of numbers from 0 to 7. hello forum, to start any service in chkconfig there are run level 1 to 5. The opposite is also true. How to change Redhat Linux system default run level? 1. Introduction to Linux I Chapter 18 Exam Answer Question ID 820 Which of the following are considered replacements for the traditional init process? (choose two) Sysinit Upstart Starter Systemd Question ID 825 Which runlevel number defines multi-user with no networking services? 2 0 5 1 6 4 3 Question ID 827 Instead of using […]Continue reading. We first add the service using chkconfig script. Optimized and resilient platform for SAP applications and databases. The Postfix configuration file is main. As an example, lets enable the Apache web server to start in run levels 2, 3, and 5. See below for more explanation on it. Debian start up scripts should be managed using update-rc. In the fedora or redhat linux distribution we use the command chkconfig to add startup or init script. chkconfig –level 235 /etc/init. chkconfig --list will display run levels and daemons under Redhat and mandrake. Note that only the on, off, and --list commands are supported for xinetd. #Disable unless this machine is a laptop or the PC has PCMCIA cards chkconfig --level 2345 pcmcia off. Angus Angus has done a good job with #2. And in order to add Continuum to chkconfig, it is necessary to add some comments to the /etc/rc. What should Apache2, vncserver, mysql and samba run at via chkconfig? This is what a partial view of what my chkconfig looks like: chkconfig --list # chkconfig --list. For right now I'm just playing around with the server and when I confident that it's running well then I'll take Teamspeak off the Windows-box I have and run it on Mandrake. Here we see it will run at levels 3 and 5. How do I change the target (runlevel)? systemd has the concept of targets which is a more flexible replacement for runlevels in sysvinit. We can start the GUI right now ( as long as there is a GUI installed) by running ‘systemctl isolate graphical. 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. 3 Version 1. Level 5 Is X11 Mode, which means it has everything level 3 has plus the GUI. Make sure httpd service is on in chkconfig so while server restarts this service will also will start if now we should manually start the service. When a new service is added, chkconfig ensures that the service has either a start or a kill entry in every runlevel. The next two numbers are the priority for start and stop respectively. 10 hours ago · chkconfig Level 表Level 說明Level 0 關機Level 1 單人模式. Note that it is possible to specify more than one runlevel at once by simply combining the numbers. 查看当前 run level who -r runlevel 2. 2 posts published by IT Markaz during April 2015. Possible values for type are sysv and xinetd. 7 on Centos 6. Different run levels exist to allow administrators to fix, repair, modify, enhance security, reboot or turn off the system. This option adds a new service for management by chkconfig. The conventional way used to change runlevel using /etc/inittab has become obsolete with Redhat Enterprise Linux version 7. Check the run level of yr Ubuntu type distro and you will see that it is probably 2 or perhaps 1, in rare cases where a single user mode runlevel is preferred. When I say init script I mean: An init script is something that you can use with chkconfig to put universe in the startup and shutdown process of the machine. 改变默认启动级别 修改/etc/inittab id:5:initdefault: 4. Verifying the kernel configuration 2. bubba 7-Oct-2015 at 5:20 am. Each defined run level should have an rcX. 1) there are different run levels generally 0-6 & S/s 2) Default is run level 3 3) with chkconfig user can create links in /etc/rcX. /sbin/service postfix start and see if it's running with a quick ps ax command. Run levels A run level is a state of init and the whole system that defines what system services are operating. chkconfig requires some additional comment lines in the actual init script to tell it in which run levels the service should be started, and when, relatively, the service should be started during the initialization of the run level. A blog about scalable infrastructure, IaaS, PaaS and SaaS. Note that only the on, off, and --list commands are supported for xinetd. --level: Specifies the run levels an operation should pertain to. chkconfig: 345 86 16. This can be messy & difficult to standardize. 3 Change Run Levels and Shutdown or Reboot the Linux System August 23, 2013 by The Urban Penguin In this lesson, we have a few videos for you to look at and we are starting to really understand how Linux works. 1 on a 933Mhz pIII, 256mb sdRAM, 32mb ATI Expert 2000, 20gig hd, Kernel 2. Since Arusha favors explicit parameters defined in XML over information embedded within other files, define run levels and sequence numbers with Ark parameters. The chkconfig utility in Linux is command line tool to manage system services startups in run levels starting from 0 to 6. Modify your script to reflect the desired run levels. ntp daemon to start at different run levels, it will break the startup of yajsw generated services. Q:19 List the services that are enabled at a particular run level in linux server ? Ans: With the help of command ‘chkconfig –list | grep 5:on’ we can list all the service that are enabled in run level5. The first line here has some numbers ahead chkconfig: like 235, 29 and 88. Add the header information mentioned above to an init script 2. This answers #2 above, but #1 is still open. chkconfig [–level levels] [–type type] name DESCRIPTION chkconfig provides a simple command-line tool for maintaining the /etc/rc[0-6]. d sudo chkconfig --add nexus sudo chkconfig --levels 345 nexus on sudo service nexus start. 5 installation and was wondering if there is a facility for managing a daemon for the run levels similar to linux's chkconfig. Step 2: Installing Apache. 27 on Centos 6. target is similar to the well known run level 3, which is essentially console only with networking enabled. Most servers boot into run level 3, which starts the text based login prompt. chkconfig --add FMEServerWebSocketStart. Adds the init script to chkconfig and sets it to on for run levels 2, 3, 4, and 5. If it does not have run levels 2345, edit it and put it there (though mine had, in the stock F8 distro). Notice that it does not matter which service I modify with chkconfig, as chkconfig/insserv will update all startup links to match service startup files! That is, if I modify e. This video helps to configure services for starting and stopping them automatically when the Operating System boots using chkconfig Command. By chkconfig command, below will stop httpd service at run level 4,5. Hello, I've got an OpenServer 5. target (and runlevel6. chkconfig Command helps you to configure services for starting and stopping them automatically when the Operating System boots. Third question is how to change the start/stop runlevels for apache-htcacheclean. And that's it. Without a tool like chkconfig, symbolic links to the scripts in /etc/rc. Using Suse 9. If you want to remove iptables completly from system we can use rpm command to do this. Run level 5 is emulated by graphical. Run level 3 is emulated by multi-user. Red Hat Enterprise Linux to ensure that ldirectord starts up (on run-levels 2, 3, 4 and 5) and that heartbeat does not start on reboot up the chkconfig command is used: /sbin/chkconfig --level 2345 ldirectord on /sbin/chkconfig --del heartbeat To ensure that heartbeat is not running and start ldirectord with the new configuration run:. To verify the settings run chkconfig one more time as follows:. chkconfig command is mainly used to set given service or daemon run level. Run the chkconfig utility to associate the dbora service with the appropriate run levels: chkconfig --level 2345 oracle on. It can be used to change the state of a service. RUN_AS_USER=”nexus” cd /etc/init. Now update the run-levels: $ chkconfig tomcat --level 2345 on. # Customizing run levels # -----# To customize service activation, via the different startup levels, we use # "chkconfig --level NNNN on" command where NNNN is the level number(s) # where our service will be enabled [email protected]:/#> chkconfig --level 2345 on. The first line instructs chkconfig to install the script in the directories for run levels 2, 3, and 4 with start sequence 21 and stop sequence 82. "Run Levels" in Linux are different startup or shutdown settings that can be used at any time to force Linux into a given state using the "init" command. conf are created. The Postfix configuration file is main. You can configure for specific runlevels using the –levels command line option if necessary. d Run level 6. Look in /etc/init. This option lists all of the services which chkconfig knows about, and whether they are stopped or started in each runlevel. d hierarchy, however, this version directly manages the symlinks in /etc/rc[0-6]. Chkconfig [–level levels] name: setting up a service in specified run level is started, stop or reset. Installation | init. d with the appropriate run levels: RHEL Server : $ chkconfig --add arcgisdatastore $ chkconfig arcgisdatastore on. Now, on to configuration. Introduction to Linux I Chapter 18 Exam Answer Question ID 820 Which of the following are considered replacements for the traditional init process? (choose two) Sysinit Upstart Starter Systemd Question ID 825 Which runlevel number defines multi-user with no networking services? 2 0 5 1 6 4 3 Question ID 827 Instead of using […]Continue reading. The next two numbers are the priority for start and stop respectively. Linux Runlevels Defined. How can we check whether the service had a graceful stop or not, at least in case it has a proper start/stop/restart script in init. Given as a string of numbers from 0 to 7. It'll still start in run level 3 (the normal one for non-GUI stuff). chkconfig --levels 235 httpd on Stack Exchange Network Stack Exchange network consists of 175 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. --level levels Specifies the run levels an operation should pertain to. Use the who to check what your current run level is:. sh script (note that _continuum_user_ needs to be replaced by the name of an account you have already created):. Add the MySQL service to our start up run levels. Each directory corresponds to a different Linux Run Level. It allows you to display and change the services on your system at all levels. It requires that you put two specially-formed comment lines in your application startup/shutdown script: #chkconfig -list to check the current startup settings # chkconfig: 345 80 20. [[email protected] ~]# chkconfig --level 45 httpd off By systemctl command, you can enable any of service to start on boot time as below. Here it gives 2 characters which are. 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. It is also possible to. Hello, I've got an OpenServer 5. To list the state of all the services in different run levels : # chkconfig --list 8. I knew how to do this on Redhat based distributions, but Debian does things differently. With the last version of samba 4 comes with Active directory logon and administration protocols, including typical active directory support and full interoperability with Microsoft Active Directory servers. Also, it is necessary to view the contents of each run level directory to see which services are configured to run. The default runlevel for an RHEL system is defined within the /etc/inittab file. The "35" indicates the run-levels when the service should be auto-started when the computer starts; The "20 80" indicates priority levels to start and stop the service among all the services managed by CHKCONFIG. This option adds a new service for management by chkconfig. # chkconfig --level 35 httpd on The “–list” option displays all the run levels a specific service is associated with. The 'chkconfig' command all by itself will display all available services in every run level, like so: # chkconfig –-list acpid 0:off 1:off 2:off 3:off 4:on 5:on 6:off anacron 0:off 1:off 2:on 3:on 4:on 5:on 6:off apmd 0:off 1:off 2:on 3:on 4:on 5:on 6:off crossfire 0:off 1:off 2:off 3:off 4:off 5:off 6:off. SAP Solutions. chkconfig requires some additional comment lines in the actual init script to tell it in which run levels the service should be started, and when, relatively, the service should be started during the initialization of the run level. The basic process for doing this is on the Configure a Remote Red Hat Based Linux Server for AWStats how-to. It’s for allowing custom user runlevels to be configured if there is a specific configuration that needs to be used regularly. The chkconfig tool defaults to changing the settings for runlevels 2, 3, 4 and 5. org - Sep 20, 2004 · what are run levels in chkconfig. The third command adds nexus to run-levels 3, 4, and 5. Linux Runlevels Defined. In Red Hat Linux derivitives like Fedora and CentOS the command 'chkconfig' allows for the easy listing, enabling and disabling of services. In this case, we are going to enable httpd service on run-level 3 and 5. In case of on, openvpn is already configured to run as a service. d Run level 1 /etc/rc2. If you are using a GUI window manager, you probably have another graphical application to see this information. The Red Hat Customer Portal delivers the knowledge, expertise, and guidance available through your Red Hat subscription. For instance, when your server is loaded at runtime level 5 (usual) then all the resources under rc5. Here's an example of how to make it start in run levels 2, 3, 4, and 5: # chkconfig --level 2345 tomcat on. # chkconfig --level 35 httpd on. For my example I'll see a line like:. RHEL 6 vs RHEL 7 - Here we are sharing a blog post on key differences between RHEL 6 and RHEL 7. for levels 0 for level 1 for levels 2 & 3 for level 3 Startup program names is formed like: sNNname s S to start process or K to kill process at this run level NN sequence number name name of script in /etc/init. What should Apache2, vncserver, mysql and samba run at via chkconfig? This is what a partial view of what my chkconfig looks like: chkconfig --list # chkconfig --list. Run "service crond status" to be sure the cron service is running. Start GUI In CentOS. systemctl command suite provides more and detailed features. The run levels are defined by files in the file system. Use the command " service crond start " to start the service if it is not running. This will show if the iptables will restart each number corresponds to a run level as shown in the screenshot below {Login} chkconfig –list iptables. [--config run-levels,startval,killval] is optional, and only needed if is not setup for chkconfig. You can use the service and chkconfig commands on the command line to start, stop, and modify the run levels of the /etc/init. The chkconfig --list command displays a list of system services and whether they are started (on) or stopped (off) in run levels 0-6. If the settings at run levels 3, 4 and 5 are not set to on for either the iscsi or iscsid service, enable them as follows: [[email protected] ~]# chkconfig iscsi on. chkconfig --add FMEServerDatabaseStart. Most desktop Linux distributions boot into run level 5, which starts up the Graphical Login Prompt. Init is responsible for starting system processes as defined in the /etc/inittab file. Create and delete tables. The next two numbers are the priority for start and stop respectively. We first add the service using chkconfig script. When this problem first occurred I hit Google, and was still lost. this says that the script must run at levels 3, 4 and 5 and the priority for start/stop is 99 and 10. Third question is how to change the start/stop runlevels for apache-htcacheclean. d and chkconfig 21 Dec 2018. When you do chkconfig -add myservice then it will look in /etc/init. 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. Here is an example of switching to single user mode, or runlevel 1: init 1. The /etc/inittab file controls what happens whenever a Unix system is rebooted or forced to change run levels. In Debian you can use the sysv-rc-conf package.