Questions tagged [chkconfig]

50 questions
1
vote
1 answer

Is there an issue with working directory when using service to launch an init script?

I am curious, is there something I need to watch out for when spawning process as background jobs from init scripts using service? Here is the line that works at terminal, in a bash script/an init script, but will not successfully launch when using…
brandeded
  • 1,845
  • 8
  • 32
  • 50
1
vote
1 answer

Subtle difference in chkconfig entry

I'm not able to try this out on one of our machines, so I'm asking here instead! Why does the following chkconfig entry in an init script work: # chkconfig: - 95 05 whereas the following doesn't: # chkconfig : - 85 15 Is it the fact that there is…
Rich
  • 1,343
  • 7
  • 28
  • 39
0
votes
0 answers

Apache / httpd not creating a PID file on boot

I installed Subversion Edge 5.2.2 which uses Apache on CentOS Linux release 7.2.1511. I installed it as a service which I can stop / start. The httpd.conf has entry PidFile "/opt/csvn-5.2.2/data/run/httpd.pid" I configured the service to…
onknows
  • 322
  • 2
  • 5
  • 15
0
votes
1 answer

chkconfig wont install tomcat8

I have tomcat8 intalled on my Amazon Linux AMI, I modified the tomcat8 init script header, so chkconfig could install tomcat8 to run automatically on boot. The modified header is: #!/bin/bash # # tomcat This shell script takes care of starting…
mFeinstein
  • 513
  • 2
  • 5
  • 10
0
votes
0 answers

How to handle error: service xvfb does not support chkconfig?

When I followed the installation instructions below to install xvfb, I get the following error: service xvfb does not support chkconfig Installation Instructions Install Xvfb (via the RHEL Server Optional repository) # yum -y install…
Chris Hansen
  • 139
  • 1
  • 1
  • 4
0
votes
0 answers

Using chkconfig to implement auto-start on RHEL7?

I'm moving an in-house application from RHEL6 to RHEL7 servers. I read you should still be able to use chkconfig and service commands to install start/stop scripts, even if they have now changed to systemd boot-up: Although you can still use the…
Rop
  • 151
  • 1
  • 6
0
votes
0 answers

Strange chkconfig behaviour on Debian for samba service

The service "samba" is not starting at boot on this standard Debian 7.7 installation while it should. Based on the chkconfig man page, I did this, but it still doesn't start at boot : chkconfig samba 2345 If I compare to the ssh services it looks…
db_ch
  • 648
  • 5
  • 14
  • 21
0
votes
0 answers

systemd doesn't honour chkconfig KILL order

I have a init script which has to start and stop both firstly during system reboot. I was able to achieve this by having a appropriate chkConfig START and KILL order. Sometimeback only, I have switched to using systemd. But, I don't want to port my…
0
votes
1 answer

I have two Mysql servers running on Centos7 . both using different ports. have to manually boot on start.

I need help . mysql on port 3306 and mysql2 on port 3307. I copied my.cnf to my2.cnf I added the following in my2.cnf: datadir=/var/lib/mysql2 port=3307 cp /etc/init.d/mysql /etc/init.d/mysql2 Added to line 138 in vi /etc/init.d/mysql2: --port=*) …
Lolu911
  • 11
  • 2
  • 8
0
votes
1 answer

Is Nginx running at all runlevels bad?

I inherited some EC2 (running AMI) instances at my new job and I am trying to figure out the method that my predecessor used to set them up. This might be a really basic question, but my knowledge of the ins and outs of runlevels and init are poor…
Rob
  • 185
  • 1
  • 8
0
votes
2 answers

This script won't execute on startup, ideas?

The distribution is RHEL 5. The script has been added to chkconfig like so: # chkconfig --add script # chkconfig script on But it refuses to start when taking up the machine, what could be the problem? #!/bin/bash # # chkconfig: 2345 20 80 #…
davidl
  • 3
  • 2
0
votes
2 answers

Startup services are not getting started in CENTOS

I deployed my project on a Shared Hosting that has Root access the Server in picture is CENTOS now although I have defined the service to start on boot it not getting started chkconfig --level 35 thin.startup on chkconfig --list | grep…
Viren
  • 171
  • 1
  • 2
  • 10
0
votes
1 answer

Automatically remove instance from ELB on server stop

How to automatically remove an instance from its LoadBalance (ELB) when you stop the instance? I've tried to create a shutdown script and put it on chkconfig, but it is not working: #!/bin/bash # loggly authorization # # chkconfig: 2345 20 10 #…
0
votes
1 answer

Why daemon does not run

My daemon used to run under 10.04, but no longer starts automatically on 12.04. If I start it manually /etc/init.d/sqlexecd start, it works. Here is the output of uname -a Linux steamboy 3.2.0-30-generic-pae #48-Ubuntu SMP Fri Aug 24 17:14:09 UTC…
octopusgrabbus
  • 175
  • 5
  • 21
0
votes
1 answer

Error while setting a run level for a service on ubuntu 10.04

I had stopped openvpn from loading at boot by doing this: sudo chkconfig openvpn off Now I want it to load at boot up. So I did this: sudo chkconfig openvpn on But it fails and the error I get is: the service might have been converted to upstart…
nixnotwin
  • 1,543
  • 5
  • 35
  • 55