Mailinglist Archive: opensuse (882 mails)

< Previous Next >
Re: [opensuse] rc.local in openSUSE
  • From: Patrick Shanahan <paka@xxxxxxxxxxxx>
  • Date: Mon, 13 Dec 2010 20:43:59 -0500
  • Message-id: <20101214014359.GG12277@xxxxxxxxxxxxxxx>
* Brian K. White <brian@xxxxxxxxx> [12-13-10 20:35]:
On 12/13/2010 8:30 PM, Patrick Shanahan wrote:
20:30 wahoo:~> cat /etc/init.d/after.local
#/usr/local/bin/noip2.start start

if ! [ pidof noip2 ] ;
then /usr/local/bin/noip2.start start ;
fi


pidof noip2 || /usr/local/bin/noip2.start start

Tks. Shorter *is* better (!tm), but unless one realizes that "||"
means "OR" in this case.

And I continue to learn :^)
When/if I reach 80 I should know about everything!
--
Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711
http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535 @ http://counter.li.org
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups