[mdlug] Raspberry Pi, VNC, Bluetooth
Adam Tauno Williams
awilliam at whitemice.org
Mon Sep 15 06:35:15 EDT 2014
On Sat, 2014-09-13 at 06:42 -0400, Carl T. Miller wrote:
> Drew wrote:
> > I've written a shell script that extracts from the output of ifconfig
> > the last octet of the Pi's IP address on eth0 and flashes it
> > repeatedly on the green LED. I plan to add the same for wlan0 when I
> > get a wifi dongle. I want this to run in the background, continuously,
> > and to start at the end of the boot process.. What is the "proper" way
> > to set it up?
> If you have an /etc/rc.local file, I'd add an entry to it
> to that file and be sure to end it with an ampersand. For
> example:
> echo "/usr/local/sbin/myscript &" >> /etc/rc.local
> If you do not have an /etc/rc.local file,
Another trick is to have init run the service; that way it will get
restarted automatically if it poops out.
Or on a systemd system - which a newer system likely is [Yay!] - you
just create a service file.
<http://0pointer.de/blog/projects/systemd-for-admins-3.html>
--
Adam Tauno Williams <mailto:awilliam at whitemice.org> GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA
More information about the mdlug
mailing list