cleanup + autostart skeleton update
This commit is contained in:
parent
06dca61343
commit
e59ac3138a
3 changed files with 2 additions and 32 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue