Erik's blog

Code, notes, recipes, general musings

attempt to restart/stop yaws failed

with 2 comments

I’ve got yaws (git hash 5f35f5b7451ea4388c53df9f4e00caad0caa6b45) running on CentOS 5.3.  I just added a virtual host entry in yaws.conf and tried to restart yaws, but the restart failed:

[me@mymachine /]$ sudo etc/init.d/yaws restart
Stopping yaws:                                             [FAILED]

After hunting around a bit, it seems yaws will fail to restart (and stop) if the docroot doesn’t point to an actual directory.  In my case, I added the virtual host entry before actually creating the docroot directory.  Making the directory fixed the problem.

Advertisements

Written by Erik

October 8, 2009 at 8:52 pm

Posted in tutorial

Tagged with ,

2 Responses

Subscribe to comments with RSS.

  1. ¿How did you get the yaws init script? I only have /usr/local/bin/yaws and doesn’t have restart method

    EduardoBP

    October 28, 2010 at 3:09 am

    • Hi Eduardo. The init.d script in the github repo defines a restart option, so I think this might be an installation issue, i.e., that init.d script is not being copied to your init.d directory when yaws is installed. Can you edit the control script your system is using for yaws and add a custom restart option?

      Erik

      October 29, 2010 at 1:24 pm


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: