Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
carberry:rpi:daemons:shutdown [2019/09/30 13:44] 127.0.0.1 external edit |
carberry:rpi:daemons:shutdown [2024/05/27 09:04] (current) admin [Install the daemon] |
||
|---|---|---|---|
| Line 12: | Line 12: | ||
| Enter home directory: | Enter home directory: | ||
| - | cd /home/pi/ | + | cd |
| Download the daemon: | Download the daemon: | ||
| - | curl -O -J http://www.carberry.it/down.php?download_id=691 | + | curl -O -J "https://www.carberry.it/index.php?route=download/download/download&download_id=31" |
| | | ||
| Untar the file: | Untar the file: | ||
| - | tar -xvf shutdown_d_1.0.tar | + | tar -xvf shutdown_d_1.1.tar |
| + | |||
| + | Create directory in /usr/local/bin: | ||
| + | |||
| + | sudo mkdir -p /usr/local/bin/carberry | ||
| + | |||
| + | Move directory to /usr/local/bin/carberry: | ||
| + | |||
| + | sudo mv shutdown_d /usr/local/bin/carberry/ | ||
| Add execution rights: | Add execution rights: | ||
| - | chmod +x /home/pi/shutdown_d/shutdown.sh | + | chmod +x /usr/local/bin/carberry/shutdown_d/shutdown.sh |
| Add a new line to the ''/etc/rc.local'' before ''exit 0'' line.\\ | Add a new line to the ''/etc/rc.local'' before ''exit 0'' line.\\ | ||
| Line 33: | Line 41: | ||
| Add: | Add: | ||
| | | ||
| - | /home/pi/shutdown_d/shutdown.sh& | + | /usr/local/bin/carberry/shutdown_d/shutdown.sh& |
| exit 0 | exit 0 | ||
| | | ||
| Line 49: | Line 57: | ||
| pi@raspberrypi ~ $ ps aux | grep shutdown | pi@raspberrypi ~ $ ps aux | grep shutdown | ||
| - | root 2058 0.4 0.2 2736 1188 ? S 14:40 0:00 /bin/bash /home/pi/shutdown_d/shutdown.sh | + | root 2058 0.4 0.2 2736 1188 ? S 14:40 0:00 /bin/bash /usr/local/bin/carberry/shutdown_d/shutdown.sh |
| pi 2380 0.0 0.1 3568 832 pts/0 S+ 14:42 0:00 grep --color=auto shutdown | pi 2380 0.0 0.1 3568 832 pts/0 S+ 14:42 0:00 grep --color=auto shutdown | ||
| pi@raspberrypi ~ $ | pi@raspberrypi ~ $ | ||
