From c28367d2c83d4462ed11ed810c910f25dc7c797e Mon Sep 17 00:00:00 2001 From: Alexander Schaefer Date: Thu, 10 Mar 2016 21:55:01 +0100 Subject: [PATCH 1/2] Add readme --- util/readme.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 util/readme.md diff --git a/util/readme.md b/util/readme.md new file mode 100644 index 0000000..6cd58dd --- /dev/null +++ b/util/readme.md @@ -0,0 +1,31 @@ +This folder provides utility files for the pigpio library. + +### pigpiod + +`pigpiod` is a script that allows to run pigpiod as a Linux service with root privileges. +The advantage of running pigpiod as a service is that pigpiod can be automatically launched on system startup. +To automatically start pigpiod as a service, do the following: + ++ Copy `pigpiod` from this directory to `/etc/init.d/`. + ++ Make it executable: + ``` + sudo chmod +x /etc/init.d/pigpiod + ``` + ++ Tell update-rc.d to automatically start the pigpiod service on system startup: + ``` + sudo update-rc.d skeleton defaults + ``` + ++ Now, you can start, stop, and restart pigpiod using + ``` + sudo service pigpiod start + sudo service pigpiod stop + sudo service pigpiod restart + ``` + + +### Findpigpio.cmake + +`Findpigpio.cmake` is a script used by CMake to find out where the pigpio header and library files are located. From cac54fd86b16aebb1b1f084576350602f0262b89 Mon Sep 17 00:00:00 2001 From: Alexander Schaefer Date: Thu, 10 Mar 2016 21:56:34 +0100 Subject: [PATCH 2/2] Fix copy-and-paste mistake. --- util/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/readme.md b/util/readme.md index 6cd58dd..27c4c3d 100644 --- a/util/readme.md +++ b/util/readme.md @@ -15,7 +15,7 @@ To automatically start pigpiod as a service, do the following: + Tell update-rc.d to automatically start the pigpiod service on system startup: ``` - sudo update-rc.d skeleton defaults + sudo update-rc.d pigpiod defaults ``` + Now, you can start, stop, and restart pigpiod using