Software engineering notes

attempt to restart/stop yaws failed

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.

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


    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?


      October 29, 2010 at 1:24 pm

Comments are closed.

%d bloggers like this: