Questions tagged [chkconfig]

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

40 questions
8
votes
1 answer

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 possible with systemctl and chkconfig commands.…
it dev
  • 305
  • 1
  • 4
  • 11
7
votes
2 answers

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?
David John Smith
  • 173
  • 1
  • 1
  • 4
5
votes
1 answer

Can't enable grafana on boot in Fedora because systemd-sysv-install missing

Fairly stock standard Fedora 30 install: $ uname -a Linux 5.1.16-300.fc30.x86_64 #1 SMP Wed Jul 3 15:06:51 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux $ cat /etc/fedora-release Fedora release 30 (Thirty) I have installed grafana using…
Heath Raftery
  • 1,232
  • 1
  • 15
  • 18
5
votes
1 answer

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 be configured using systemctl. For example,…
Cory Klein
  • 18,391
  • 26
  • 81
  • 93
5
votes
1 answer

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 example in /etc/init.d/mysqld the first few lines…
PrgmError
  • 61
  • 5
4
votes
2 answers

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 [ Warning ] In the…
Animesh
  • 1,957
  • 5
  • 22
  • 31
4
votes
1 answer

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 start and stop the listener and database manually. …
tsm
  • 41
  • 2
4
votes
1 answer

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 the service on boot. update-rc.d grafana-server…
The One
  • 4,662
  • 11
  • 29
  • 35
4
votes
3 answers

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 the script #chkconfig --list # chkconfig: 06 10…
Gidi Kern
  • 41
  • 1
  • 1
  • 2
4
votes
3 answers

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 chkconfig --list | grep httpd which returns…
user70804
  • 375
  • 1
  • 3
  • 5
3
votes
1 answer

What's the Debian Equivalent for chkconfig

What's the Debian Equivalent for chkconfig? On CentOS 6 I can run this to see the services that load with the system: chkconfig --list And i can set a service to start on boot like this: chkconfig on Is there a similar binary that…
brakertech
  • 1,385
  • 2
  • 11
  • 12
3
votes
2 answers

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 target like graphical.target.
Joy
  • 31
  • 2
3
votes
2 answers

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 me tons of errors. Here is an example, trying to…
Isaac
  • 390
  • 1
  • 2
  • 10
3
votes
2 answers

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: Invalid argument. See system logs and 'systemctl…
Peter Gerhat
  • 1,202
  • 5
  • 17
  • 30
3
votes
1 answer

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: service policyserver start But fails to run…
SSpoke
  • 165
  • 1
  • 3
  • 12
1
2 3