Carl Johnson on 15 Jan 2014 08:47:04 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] debugging an init script


Can someone in PLUG can help me out? My google-fu isn't that strong today.

I've a Centos 6.5 box that has a service that won't start. Every time I run "service <script name> start" I get a red "[FAILED] message.

Does anyone have any idea how I can log/watch/debug this script to see why/where it's failing as it runs? Can I redirect the sub-shell output to a logfile somehow? Is there a way to make it send all output to stdout?

All I know right now is that it's failing. The script doesn't have the logic in it to tell me "xyz.conf is missing....... [FAILED] or that it's failing because it can't write a PID to /var/run" or something like that.



___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug