aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2010-12-27 18:12:34 +0100
committerLaurent Bachelier <laurent@bachelier.name>2010-12-27 18:12:34 +0100
commitc433d48b2a93d16db41c1bb21762ed54ef4e8eda (patch)
treec3e63b489bcb28b670c3090d67a258077cd3c64d
parentRestart lighttpd when the config changes (diff)
downloadsymfttpd-c433d48b2a93d16db41c1bb21762ed54ef4e8eda.tar.xz
Update documentation and enhance messages
-rw-r--r--README.md7
-rwxr-xr-xspawn6
2 files changed, 7 insertions, 6 deletions
diff --git a/README.md b/README.md
index 2ce4ccf..7ba4db1 100644
--- a/README.md
+++ b/README.md
@@ -167,9 +167,10 @@ or if you want a different default application:
include_shell "/path/to/example.com/config/lighttpd.php --default=mobile"
}
-You have to restart lighttpd each time you add a file the the web/
-root. Hopefully, it doesn't happen often. Also, don't forget to run
-`php symfony plugin:publish-assets`, or even better, `mksymlinks` before.
+If symfttpd is running in single-process mode, you have to restart lighttpd
+each time you add a file the the web/ root. Hopefully, it doesn't happen often.
+Also, don't forget to run `php symfony plugin:publish-assets`, or even better,
+`mksymlinks` before.
### Available options
diff --git a/spawn b/spawn
index d11466d..0c7b8ad 100755
--- a/spawn
+++ b/spawn
@@ -104,7 +104,7 @@ flush();
if (!$options['fork'])
{
passthru($options['lighttpd_cmd'].' -D -f '.escapeshellarg($config_file));
- log_message('Terminated');
+ log_message('Terminated.');
}
else
{
@@ -144,13 +144,13 @@ else
}
else
{
- log_message('Restarting lighttpd.');
+ log_message('Something in web/ changed. Restarting lighttpd.');
}
} while (file_exists($options['restartfile']));
}
else
{
- log_message('Unable to fork!');
+ log_message('Unable to fork!', true);
exit(1);
}
}