| Andrew Libby on 15 Jan 2014 08:49:15 -0800 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: [PLUG] debugging an init script |
Hi Carl,
You can probably do something like
/bin/bash -x /etc/init.d/servicescriptname {start|stop}
This is provided it's still using garden variety
init. Does RedHat/ CentOS still use that?
Andy
On 1/15/14 11:46 AM, Carl Johnson wrote:
> 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
>
--
Andrew Libby
xforty technologies
http://xforty.com
http://zugunroute.com
alibby@xforty.com
484-887-7505 x 1115
___________________________________________________________________________
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