changeset 9:8dc405772957 draft

minor fix to rc.d script Signed-off-by: Changaco <changaco ατ changaco δοτ net>
author Changaco <changaco ατ changaco δοτ net>
date Mon, 16 Apr 2012 01:14:50 +0200
parents 89a371120463
children 89f581ebf4b2
files rc.d/feed-push
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rc.d/feed-push
+++ b/rc.d/feed-push
@@ -6,7 +6,7 @@
 daemon_bin="/usr/bin/feed-push"
 daemon_name=$(basename $daemon_bin)
 pid_file="/var/run/$daemon_name.pid"
-PID=$(cat $pid_file)
+PID=$(cat $pid_file 2>/dev/null)
 
 data_dir=/var/lib/$daemon_name
 conf_dir=/etc/$daemon_name