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.

Visit Stack Exchange

Questions tagged [chkconfig]

a command used to change/query the state of system services during system startup

0
votes
0answers
6 views

Can't find the source of startup httpdmas at bootup

I have checked cron jobs but no startups referring to httpdmas. I have checked /etc/rc[0-6].d and /etc/init.d/rc.d/ (none) I have checked chkconfig for httpdmas and it is all off. chkconfig --list … ...
0
votes
1answer
42 views

How to remove service from autostart?

By default, if my Linux is booted, some services like httpd, named start automatically. I want to start them manually, I want to remove them from autostartup. In the internet, it is said that it is ...
0
votes
1answer
37 views

chkconfig modification dosen't takes effect

I use CentOS release 6.5 (Final) and I would like that wpa_supplicant service start after network service. When I go to /etc/rc5.d and I type ls command, I can see : K84wpa_supplicant -> ../init.d/...
3
votes
2answers
283 views

What's the systemctl equivalent for a command like 'chkconfig --level 5 iptables on'

I know systemctl enable iptables is similar to the command chkconfig --level 5 iptables on, but both are not exactly same. Using systemctl, how do we restrict a service to be started only on a given ...
2
votes
1answer
8k views

chkconfig equivalent - RHEL7

In the good old days you would use chkconfig to see if a service was enabled for a run level. E.g. chkconfig --list tgtd However, now you're supposed to use systemctl. But I can't get systemctl to ...
3
votes
1answer
801 views

su cannot open session error when starting Oracle XE database

I have a RHEL 7.2 server with Oracle 11g Express Edition (11.2.0) installed. The installation of Oracle created a file named "oracle-xe" in /etc/init.d This is a bash script that can be used to ...
1
vote
1answer
5k views

Init.d script not working on startup: Failed to start SYSV

The Keystone CMS system fails to run on startup. The problem is likely in this init.d startup script. I set the permissions, but something is still not right. $ sudo systemctl daemon-reload $ sudo ...
2
votes
2answers
10k views

Invalid argument while starting Cloud9 service on startup

I am trying to automate running Cloud9, by setting it as a service on Debian. This error stops me: $ sudo service cloud9 start Failed to start cloud9.service: Unit cloud9.service failed to load: ...
2
votes
2answers
3k views

Autorestart services after crash in rhel 6

How to implemented this without systemd (chkconfig, etc..)? I would like to restart PostgreSQL, Mongod and RabbitMQ.
-4
votes
1answer
171 views

redhat 7 + systemctl verification

I have try this on redhat 7 systemctl list-unit-files --type=service|grep iptables or systemctl list-unit-files --type=service|grep firewall but not get any output - is this mean the iptables/...
2
votes
1answer
4k views

chkconfig --add default runlevel

What is the default runlevel assigned when you run chkconfig --add for a program?
0
votes
1answer
1k views

inittab not restarting service after service crash in Red Hat 6.7

NOTE: I am running Red Hat 6.7 I have a service that is configured with the Linux init system to start a process as a service when the machine boots. This was done by doing this one-time ...
0
votes
0answers
569 views

linux + start script under /etc/init.d dependencies with other services

from some reason the script UPMnT.sh not start at boot I cheeked everything: chkconfig is ok links are ok but I worry about maybe there are dependencies between other script to this script can ...
3
votes
1answer
11k views

convert update-rc.d command into chkconfig

I'm running CentOS 7.2 on my Cloud Account and following some tutorials to install Grafana. I've almost finished install but got stuck when they asked me to execute this command which used to start ...
0
votes
1answer
247 views

linux + configure the checkconfig for new script in /etc/init.d

I want to add new script - doCopy under /etc/init.d /etc/init.d/copy how to add this script for chkconfig so if I will run: chkconfig --list | grep doCopy I will get: doCopy 0:off ...
0
votes
0answers
366 views

Shutdown init script is not executing on immediate reboot on CentOS 7.1

I have installed an init script to run on system shutdown with the following command /sbin/chkconfig --add shutdownExample My shutdownExample(custom script to run at system shutdown) looks like this:...
2
votes
0answers
422 views

How are runlevels from CentOS 6 chkconfig translated for CentOS 7 systemctl?

How would I translate the following command from CentOS 6 to run in CentOS 7? chkconfig --level 345 dovecot on My first guess is to type the following instead: systemctl enable dovecot But ...
1
vote
1answer
2k views

RedHat init.d script will not start with service after stop

I have the service script below, which calls a shell script. We changed something in the script When I run the shell script directly, everything works fine. When I restart the servER, everything works ...
5
votes
1answer
1k views

What does the hyphen mean in chkconfig run level in an /etc/init.d script?

I just have a simple question but scouring the search engines I have not found any explanation of what the - (hyphen) in the chkconfig runlevel actually stands for within the init script file. For ...
1
vote
1answer
3k views

autorun a linux program on startup from a non-root user in centOS 6 64bit

I have a software that needs to be run via specific user "non-root" hence its home directory is /home/non-root/, I have to emphasize that the program must not be run via root and must only run after ...
4
votes
3answers
10k views

RHEL6 Can't make my script run on shutdown and reboot

I'm trying to execute a script in each shutdown and reboot but the script never runs. I created the script baseRhel64 and save it to /etc/rc.d/init.d I did chkconfig --add baseRhel64 I included in ...
4
votes
3answers
2k views

How to return either “on” or “off” for: chkconfig --list | grep httpd

To ensure httpd is automatically started on reboot. I simply run this command chkconfig httpd on what I am looking for is a way to be told if this setting is on or off instead of this command ...
2
votes
1answer
2k views

How do I set cron to run on background?

I am on ubuntu 12.04 and following this tutorial. I want to setup cron to run in the background but I don't have a chckconfig in sbin so I can't run sudo /sbin/chkconfig crond on I am fairly new to ...
2
votes
2answers
10k views

An init-script does not get called on shutdown

I have set up an init-script to control the state of a VirtualBox VM: #!/bin/sh #chkconfig: 35 99 5 #description: vTiger virtual machine ### BEGIN INIT INFO # Provides: vtigervm # Required-Start: $...
3
votes
1answer
5k views

chkconfig bootup script failing, script runs good manually

I recently purchased a vps and I attempted to create a startup/restart script to start up my java program. I am running CentOS 6. The script works if I execute it manually with this command: ...
1
vote
2answers
266 views

Change chkconfig used by Centos 6.3 to print “on” in bright green (like Ubuntu's chkconfig)?

chkconfig on Ubuntu will highlight services that are on in green when using list mode. This does not occur on CentOS 6.3. I'd like that highlighting on the CentOS chkconfig. Does anyone know how to ...
2
votes
1answer
368 views

chkconfig does not display runlevel links correctly

I am using chkconfig to manipulate runlevel links on my Debian System (LSBInitScripts). I have noticed some inconsistencies, for example According to chkconfig, the script umountiscsi.sh is turned ...
0
votes
1answer
11k views

Auto-restart an process when it crashes

I have an app that I need to autostart when the OS starts. I am running in a CentOS 6, so I am using a LSB init script placed in /etc/init.d. So far this is fine and working. Now....besides that, ...
1
vote
2answers
4k views

Calling a script on machine shutdown [duplicate]

I want to call a script on machine shutdown and restart. I have written code like #! /bin/bash #chkconfig: 0 6 1 1 #description: Description of the script # processname: killfoo # this script starts ...
1
vote
2answers
4k views

Converting update-rc.d redis_6379 defaults to chkconfig command

I'm trying to run the command below on CentOS and of course I get command not found: $ update-rc.d redis_6379 defaults How do I then perform the equivalent using chkconfig?
7
votes
2answers
14k views

Fedora 18 - Start sshd on boot

I've just installed Fedora 18, and trying to configure sshd - I used chkconfig but this is only starting sshd when a user is logged in. How do I change so that sshd starts on system boot?
4
votes
2answers
2k views

rkhunter warns about chkconfig

I ran rkhunter and received the following warnings in its output: $ rkhunter --update $ rkhunter -c ... ... ... Performing file properties checks /sbin/chkconfig ...
4
votes
1answer
3k views

How do systemd and chkconfig interact with respect to services and runlevels?

I recently updated some of our machines to Fedora 17. I have noticed that there are some services that I can configure their runlevels using chkconfig, while others don't appear there at all, and can ...
3
votes
2answers
2k views

Chkconfig on Linux Mint 12 giving tons of errors

I'm trying to disable some services from starting at boot time on my Linux Mint 12 laptop. So I installed chkconfig, which has worked great for me before on Fedora. However, on Linux Mint 12, it gives ...