Source

notefinder / notefinder.sh

The default branch has multiple heads

Full commit
#!/bin/sh
# -------------------------------------------------------------
# Copyright (C) 2007-2010 Simonenko Sergey <gforgx@lavabit.com>
# This file is subject to modified BSD license, see LICENSE file

SYNC_RUNNING=`ps x | grep -v "grep" | grep "notefinder -s"`
INDEX_RUNNING=`ps x | grep -v "grep" | grep "notefinder -i"`

if test -z $SYNC_RUNNING 2> /dev/null; then
    echo "Running synchronization daemon..." &&
    notefinder -s &
else
    echo "Synchronization daemon is already running...";
fi

#if test -z $INDEX_RUNNING 2> /dev/null; then
#    echo "Running indexer..." &&
#    notefinder -i &
#else
#    echo "Indexer is already running...";
#fi

#echo "Running client application..."
#notefinder -c

exit 0