view bin/setup-X.sh @ 365:6bbc4867a795

begin porting from shell function
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 11 Jul 2013 17:01:42 -0700
parents d0da972238d0
children 0e99d3a68066
line wrap: on
line source

#!/bin/bash

# daemons
for i in nm-applet gkrellm diodon
do
    if ! ps aux | grep ${i} | grep -v 'grep'
    then
        echo "not running: $i"
        if which ${i}
        then
            ${i} &
        fi
    fi
done