Newer
Older
backup-commander / notes.txt
  1. Service
  2. -------
  3.  
  4. After placing the service at
  5. /usr/lib/systemd/system/bu_cmdr.service
  6. refresh the daemon:
  7. systemctl daemon-reload
  8.  
  9. Start the service
  10. systemctl start bu_cmdr.service
  11. Stop the service
  12. systemctl stop bu_cmdr.service
  13. Print the logs (f follow)
  14. journalctl -fu bu_cmdr.service
  15.  
  16. To start the service at boot time, place the service file (or symlink) in:
  17. cd /etc/systemd/system/
  18. ln -s /usr/lib/systemd/system/bu_cmdr.service
  19. then enable it
  20. systemctl enable bu_cmdr.service
  21. Handy:
  22. https://sqlite.org/cli.html
  23. reset the running flag:
  24. [root@server2 svc]# sqlite3 ../data/data.db
  25. update BULIST set BuRunning=false;
  26. .quit
  27.  
  28. Command line
  29. ------------
  30.  
  31. Increment debug level
  32. php main.php debug_inc
  33. Decrement debug level
  34. php main.php debug_dec
  35. Debug levels are:
  36. const DEBUG_LOW = 0;
  37. const DEBUG_MED = DEBUG_LOW+1;
  38. const DEBUG_HIGH = DEBUG_MED+1;
  39. const DEBUG_VHIGH = DEBUG_HIGH+1;
  40.