| Carl Johnson on 15 Jan 2014 08:55:56 -0800 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: [PLUG] debugging an init script |
I'll try that. They're not going with upstart until v7 from what I've read.
Andrew Libby <alibby@xforty.com> wrote:
>
>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
>>
Sent from my Motorola DynaTAC8000X
___________________________________________________________________________
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