commit c9a11e781a4be1e1cce9e816277916b7a9c3cae8
Author: Marek Goldmann <marek.goldmann(a)gmail.com>
Date: Mon Dec 2 15:40:51 2013 +0100
Fix missing redirection to log file for sysvinit
docker.sysvinit | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/docker.sysvinit b/docker.sysvinit
index 7f0ed93..f748fa1 100644
--- a/docker.sysvinit
+++ b/docker.sysvinit
@@ -50,7 +50,8 @@ start() {
if ! [ -f $pidfile ]; then
prestart
printf "Starting $prog:\t"
- $exec -d $other_args 1>/dev/null 2>&1 &
+ echo "\n$(date)\n" >> $logfile
+ $exec -d $other_args &>> $logfile &
pid=$!
touch $lockfile
success
Show replies by date