Skip to main content

Questions tagged [chkconfig]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
42 views

Is there an equivalent to /etc/permissions with support for ACL?

I need to define a list of rights with standard UNIX and some with ACL rights. Is there a way to do check that with a config file like /etc/permissions does for UNIX rights? It is a file that is ...
Pascal P.'s user avatar
0 votes
2 answers
64 views

After configure an .sh with chkconfig, systemctl says unit myservice not found

I'm doing some labs for test setups... I've developed a bash script to set it to autostart using systemd. I installed chkconfig and configured my script as follows: Using root: cd /mypath cp myscript....
jfidel87's user avatar
0 votes
0 answers
56 views

Additional Examination to that of RkHunter False Flags

When initially exploring with RkHunter; such was characterised with the following "Warnings" on the initial setup and scan; albeit not having found any indicators associated to known or ...
W4hn51nn's user avatar
1 vote
1 answer
3k views

Unable to install cntlm on Red Hat Enterprise Linux 9 due to the absence of chkconfig

I am trying to set up proxies on my Red Hat Enterprise Linux 9. I am trying to install CNTLM proxy authentication software. I downloaded the RPM file from the official repo and tried the following ...
EJoshuaS - Stand with Ukraine's user avatar
3 votes
1 answer
12k views

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 ...
brakertech's user avatar
  • 1,395
1 vote
1 answer
59 views

'chkconfig umountnfs.sh on' does not create symlink

on Debian, the init script /etc/init.d/umountnfs.sh has default stop in runlevel 0 and 6. # Default-Stop: 0 6 but there is no symlink in /etc/rc0.d/ or /etc/rc6.d/ on my system. I am trying to ...
Martin Vegter's user avatar
5 votes
1 answer
8k views

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

Fairly stock standard Fedora 30 install: $ uname -a Linux <redacted> 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 ...
Heath Raftery's user avatar
8 votes
1 answer
31k 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 ...
it dev's user avatar
  • 315
0 votes
1 answer
192 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/...
user avatar
3 votes
2 answers
1k 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 ...
Joy's user avatar
  • 31
2 votes
1 answer
14k 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 ...
Snowcrash's user avatar
  • 699
4 votes
1 answer
2k 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 ...
tsm's user avatar
  • 41
2 votes
1 answer
13k 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 ...
Peter Gerhat's user avatar
  • 1,212
3 votes
2 answers
11k 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: ...
Peter Gerhat's user avatar
  • 1,212
2 votes
2 answers
5k 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.
shkiper's user avatar
  • 115
-4 votes
1 answer
262 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/...
yael's user avatar
  • 1,531
2 votes
1 answer
5k views

chkconfig --add default runlevel

What is the default runlevel assigned when you run chkconfig --add for a program?
chromechris's user avatar
0 votes
1 answer
2k 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 ...
StvnBrkdll's user avatar
0 votes
0 answers
1k 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 ...
yael's user avatar
  • 1,531
4 votes
1 answer
21k 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 ...
The One's user avatar
  • 4,942
0 votes
1 answer
1k 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 ...
yael's user avatar
  • 1,531
0 votes
0 answers
448 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:...
Suresh Kota's user avatar
2 votes
0 answers
477 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 ...
CodeMed's user avatar
  • 5,239
0 votes
1 answer
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 ...
Spencer Kormos's user avatar
5 votes
1 answer
2k 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 ...
PrgmError's user avatar
2 votes
1 answer
4k 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 ...
arvil's user avatar
  • 670
4 votes
3 answers
11k 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 ...
Gidi Kern's user avatar
4 votes
3 answers
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 ...
user70804's user avatar
  • 385
2 votes
1 answer
5k 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 ...
bernie2436's user avatar
  • 6,685
2 votes
2 answers
12k 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: $...
varesa's user avatar
  • 2,426
3 votes
1 answer
6k 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: ...
SSpoke's user avatar
  • 165
1 vote
2 answers
290 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 ...
brakertech's user avatar
  • 1,395
2 votes
1 answer
456 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 ...
Martin Vegter's user avatar
0 votes
1 answer
12k 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, ...
Mariano Martinez Peck's user avatar
1 vote
2 answers
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 ...
Vivek Goel's user avatar
  • 1,293
1 vote
2 answers
5k 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?
Stephane's user avatar
  • 111
7 votes
2 answers
15k 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?
David John Smith's user avatar
4 votes
2 answers
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 ...
Animesh D's user avatar
  • 1,997
5 votes
1 answer
5k 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 ...
Cory Klein's user avatar
3 votes
2 answers
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 ...
Isaac's user avatar
  • 400