Application services not starting with server reboot


 
Thread Tools Search this Thread
Operating Systems Linux Application services not starting with server reboot
# 1  
Old 10-25-2016
Application services not starting with server reboot

Hi All,
My application uses three different sub-services to make complete application up and running to normal.
The entry of all the three services are present in /etc/init.d directory with proper softlink created to application home path where it actually exists.
In one rare case one of the service was not starting after server reboot. I removed and created softlink again but it dint helped, though if I ran it from application path (service command location) it works fine .
OS is Linux kernel 3.16.0-69-generic (Ubuntu 14.04). I didn't ever worked on Ubuntu so I don't know if chkconfig works on Ubuntu and how to clear the stale files before the services are started while booting in Ubuntu.
OS boot log and applcation wrapper log doesn't show helpful information.

Kindly requesting to guide/explain concept(application service startup procedure) and possible resolution for this issue .

Thanks in advance,
hari
# 2  
Old 10-26-2016
Dear hk_kamozalwar,

I regret that my crystal ball is all foggy today so I have a few to questions pose in response first:-
  • What have you tried so far? Details/illustrations please.
  • What is meant to start?
  • What output/errors do you get during the boot?
  • What OS and version are you using?
  • What logical process are you trying to achieve?



Kind regards,
Robin
# 3  
Old 10-31-2016
Hi Robbert,
Thanks for listening my concern, Please find the answers as below

What have you tried so far? Details/illustrations please./What output/errors do you get during the boot?
  • Checked OS boot log and Application wrapper logs which didn't show any clue or error message about issue.
  • Unlinked and recreated the symbolic link again for application servoces in /etc/init.d.
  • Checked #service --status-all, but it didn't include application service in it's listing.
  • No error is there to capture or relate
What is meant to start?
  • Required service/process didn't reinstating after server reboot.

What OS and version are you using?
  • Linux kernel 3.16.0-69-generic (Ubuntu 14.04).

What logical process are you trying to achieve?
When ps -ef |grep <service name>, should show two process id, one for pid initiated by wrapper file and additional one Java Application process.

Thanks in advance.
hari

Last edited by rbatte1; 10-31-2016 at 02:06 PM.. Reason: Formatting
# 4  
Old 10-31-2016
The first google hit for 'ubuntu chkconfig' tells me that ubuntu does not use chkconfig, it uses update-rc.d, which you run like this:

Code:
# Effectively, to 'install' something you put in /etc/init.d/
update-rc.d servicename defaults
# To add a service to a runlevel
update-rc.d servicename enable 2
# To remove a service from a runlevel
update-rc.d servicename disable 2

I think 2 is the normal runlevel on Ubuntu, this can differ from distro to distro, try /sbin/runlevel (as normal user) to see what runlevel you are right now.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Lot of services in non-global zones, in uninitialized after reboot

Hello, This is Solaris-10 server, running with 4 non-global zones. This server was hung today and I had to reboot it forcefully from console. Then root file-system was not clean and I had to run fsck from failsafe mode. After it came back in run-level-3, lot of services are showing in... (3 Replies)
Discussion started by: solaris_1977
3 Replies

2. Shell Programming and Scripting

Help with restarting of application with reboot of AIX server

Hi, We have hosted our application on AIX server. The problem is that we have to start our application manually once the server is rebooted. Please guide me in writing a script that does this job automatically with the re-start of the server. I'm looking for something like windows services in... (2 Replies)
Discussion started by: himanshu397
2 Replies

3. AIX

xntpd starts after reboot only when HACMP services are started ?

Hello, Running AIX 6.1, AIX machine is HACMP node. Recently I set up ntp service. Started xntpd by hand - everythig is OK. Configured xntpd to start after reboot and rebooted the machine. After reboot checked xntpd: # lssrc -a|grep ntp xntpd tcpip ... (5 Replies)
Discussion started by: vilius
5 Replies

4. UNIX for Dummies Questions & Answers

Starting daemons at reboot.

I rebooted my server (solaris 5.8) and I had to manually start the cron and mailx daemons. How do I get these to automatically start at reboot? Thanks in advance. (2 Replies)
Discussion started by: shorty
2 Replies

5. HP-UX

Services persistant across reboot

Hi All, I need to run a daemon which should start automatically during reboot. which all files i need to alter/modify ? /etc/inittab ? Thanks, Amit (1 Reply)
Discussion started by: amit4g
1 Replies

6. AIX

services persistant across reboot

Hi, I am nerw to AIX. how can i make certain services to be persistant across reboot,similar to "chkconfig" in linux. Thanks, amit (2 Replies)
Discussion started by: amit4g
2 Replies

7. HP-UX

The server is not starting all services

Hi everybody When I Boot/restart my HP-UX server when it reaches the step described below doesn't go through. When I kick a key in the console it show me the login prompt and a can log on but I cannot access the server from the network, I can only do it via LAN console. Please, can you help... (3 Replies)
Discussion started by: cgege
3 Replies

8. Solaris

starting Oracle on Reboot

Hi All, I have to maunally startup oracle and the associated listeners whenever the Sun Solaris server is rebooted. Is there any way by which, everytime the server boots up, The Oracle startups itself. Do we need to change the init.ora file or the init.d file? Please let me know which files... (1 Reply)
Discussion started by: rahulrathod
1 Replies

9. IP Networking

stopping and starting network services

Solaris v5.6 how do you stop and start the network services? (4 Replies)
Discussion started by: Westy564
4 Replies
Login or Register to Ask a Question