initial_setup.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #to initially set up daemons on a system:
  2. # running as root:
  3. #
  4. # Copyright (c) 2019 Clementine Computing LLC.
  5. #
  6. # This file is part of PopuFare.
  7. #
  8. # PopuFare is free software: you can redistribute it and/or modify
  9. # it under the terms of the GNU Affero General Public License as published by
  10. # the Free Software Foundation, either version 3 of the License, or
  11. # (at your option) any later version.
  12. #
  13. # PopuFare is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU Affero General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU Affero General Public License
  19. # along with PopuFare. If not, see <https://www.gnu.org/licenses/>.
  20. #
  21. cp ../server_scripts/RideLogic.pm /usr/lib/perl/5.8.8/
  22. mkdir /var/run/ridelogic
  23. chown bus:bus /var/run/ridelogic
  24. mkdir /var/log/ridelogic
  25. chown bus:bus /var/log/ridelogic
  26. mkdir /etc/ridelogic
  27. cp /home/bus/new_bus/devel/server_daemons/etc/ridelogic/* /etc/ridelogic
  28. cp /home/bus/new_bus/devel/server_daemons/etc/init.d/* /etc/init.d
  29. cp /home/bus/new_bus/devel/server_daemons/avls_server/ridelogic_avlsd /usr/bin
  30. cp /home/bus/new_bus/devel/server_daemons/billing_server/ridelogic_billingd /usr/bin
  31. cp /home/bus/new_bus/devel/server_daemons/buspass_server/ridelogic_buspassd /usr/bin
  32. cp /home/bus/new_bus/devel/server_daemons/hello_daemon/ridelogic_hellod /usr/bin
  33. cp /home/bus/new_bus/devel/server_daemons/version_server/ridelogic_versiond /usr/bin
  34. chkconfig --add ridelogic_avlsd
  35. chkconfig --add ridelogic_billingd
  36. chkconfig --add ridelogic_buspassd
  37. chkconfig --add ridelogic_hellod
  38. chkconfig --add ridelogic_versiond
  39. chkconfig --level 3 ridelogic_avlsd on
  40. chkconfig --level 3 ridelogic_billingd on
  41. chkconfig --level 3 ridelogic_buspassd on
  42. chkconfig --level 3 ridelogic_hellod on
  43. chkconfig --level 3 ridelogic_versiond on
  44. # chkconfig --list | grep ridelogic