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

learn more… | top users | synonyms

3
votes
2answers
973 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 ...
0
votes
1answer
392 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 ...
1
vote
0answers
28 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 ...
0
votes
0answers
16 views

How to backup current chkconfig configurations

How to backup current chkconfig configurations chkconfig --list list the current services configurations, and when (run level) a service set to start. I need to backup the configurations and check ...
0
votes
0answers
14 views

Chkconfig --add, not adding the script to chkconfig list

I have a script, to auto start/stop an application whenever Linux reboot. When I do chkconfig --add scriptname, it do not add to chkconfig list. When I do chkconfig --list scriptname, it gives me ...