Argh.. Linux servic...
 

MegaSack DRAW - This year's winner is user - rgwb
We will be in touch

[Closed] Argh.. Linux services...

7 Posts
5 Users
0 Reactions
68 Views
Posts: 91098
Free Member
Topic starter
 

CentOS 6.7 - created a service to start Websphere Application Server using the tools it comes with, services work fine invoked manually, chkconfig says they're set to start automatically, but they don't.

Wtf?


 
Posted : 27/10/2015 6:47 pm
Posts: 0
Free Member
 

Anything in the logs? Any dependent services that are taking time to start causing the ones you're working on to fail? Correct permissions to run as the required user at start up?


 
Posted : 27/10/2015 6:56 pm
Posts: 91098
Free Member
Topic starter
 

Looked in /var/log/messages and dmesg, nothing there.

When I start them manually and then reboot the server, you can see the proper shutdown scripts working perfectly well. Just doens't come back up when the system restarts.


 
Posted : 27/10/2015 6:59 pm
Posts: 91098
Free Member
Topic starter
 

Hmm.. the startup scripts are running with different permissions to when I run them as root from the console, which is causing them to fail.


 
Posted : 27/10/2015 7:37 pm
Posts: 0
Free Member
 

Is ther any sort of chmod command being called in the startup?


 
Posted : 27/10/2015 7:46 pm
Posts: 1325
Full Member
 

Path issues? You interactive shell may have more locations in the path. At startup, it may not find the programs/scripts?


 
Posted : 28/10/2015 8:15 am
Posts: 349
Free Member
 

Use [url= http://supervisord.org/ ]supervisord[/url] :p


 
Posted : 28/10/2015 8:59 am
Posts: 91098
Free Member
Topic starter
 

I find the same error in boot.log as when I try to run it without root privs from the command line.


 
Posted : 28/10/2015 9:01 am