cleanup + autostart skeleton update

This commit is contained in:
Von Random 2017-05-10 18:17:24 +03:00
parent 06dca61343
commit e59ac3138a
3 changed files with 2 additions and 32 deletions

View file

@ -6,12 +6,10 @@ function check_start
{
# check if the service is running and, if not, start it in the background
# and detach
service=$1
if pgrep -u $USER ${service} >/dev/null; then
if pgrep -u $USER $1 >/dev/null; then
return 0
else
${service} &
disown
$* &>/dev/null </dev/null & disown
fi
}
#check_start nm-applet