Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
carberry:rpi:daemons:shutdown [2022/03/08 09:06]
admin
carberry:rpi:daemons:shutdown [2022/04/13 10:25] (current)
admin
Line 12: Line 12:
 Enter home directory: Enter home directory:
  
-  cd /home/pi/+  cd
  
 Download the daemon: Download the daemon:
  
-  curl -O -J "​https://​www.carberry.it/​index.php?​route=download/​download/​download&​download_id=11"+  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 ~ $