rc.local 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/sh -e
  2. #
  3. # rc.local
  4. #
  5. # Copyright (c) 2019 Clementine Computing LLC.
  6. #
  7. # This file is part of PopuFare.
  8. #
  9. # PopuFare is free software: you can redistribute it and/or modify
  10. # it under the terms of the GNU Affero General Public License as published by
  11. # the Free Software Foundation, either version 3 of the License, or
  12. # (at your option) any later version.
  13. #
  14. # PopuFare is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. # GNU Affero General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU Affero General Public License
  20. # along with PopuFare. If not, see <https://www.gnu.org/licenses/>.
  21. #
  22. # permissions should be 755:
  23. #
  24. # chmod 755 /etc/rc.local
  25. #
  26. /home/bus/bin/ipc_server > /tmp/ipc_server.log &
  27. /home/bus/bin/rfid_manager > /tmp/rfid.log &
  28. /home/bus/bin/magstripe_manager > /tmp/mag.log &
  29. /home/bus/bin/qr_manager > /tmp/qr.log &
  30. motion -b -c /home/bus/.motion/motion.conf -p /tmp/motion.pid -l /tmp/motion.log 2>> /tmp/init.log
  31. /home/bus/bin/piumsgd > /tmp/piumsgd.log &
  32. ( sleep 5 && su -c "/usr/bin/startx /home/bus/popufare/busunit-PIU/scripts/piu_kiosk 2>&1 /tmp/kiosk.log" ) &
  33. exit 0