bashrc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # .bashrc
  2. # Source global definitions
  3. if [ -f /etc/bashrc ]; then
  4. . /etc/bashrc
  5. fi
  6. echo "Reminder of the commands:
  7. * pstart: to start all the services
  8. * pstop: to stop all the services
  9. * prestart: to restart all the services
  10. * plog: to access the logs of the 'pagure' service (the web server)"
  11. # Uncomment the following line if you don't like systemctl's auto-paging feature:
  12. # export SYSTEMD_PAGER=
  13. # User specific aliases and functions
  14. # If adding new functions to this file, note that you can add help text to the function
  15. # by defining a variable with name _<function>_help containing the help text
  16. pstart (){
  17. sudo systemctl start pagure.service \
  18. pagure-docs.service \
  19. pagure_ci.service \
  20. pagure_ev.service \
  21. pagure_webhook.service \
  22. pagure_worker.service \
  23. pagure_authorized_keys_worker.service
  24. echo 'The application is running on http://localhost:5000/'
  25. }
  26. pstop (){
  27. sudo systemctl stop pagure.service \
  28. pagure-docs.service \
  29. pagure_ci.service \
  30. pagure_ev.service \
  31. pagure_webhook.service \
  32. pagure_worker.service \
  33. pagure_authorized_keys_worker.service
  34. }
  35. prestart (){
  36. sudo systemctl restart pagure.service \
  37. pagure-docs.service \
  38. pagure_ci.service \
  39. pagure_ev.service \
  40. pagure_webhook.service \
  41. pagure_worker.service \
  42. pagure_authorized_keys_worker.service
  43. echo 'The application is running on http://localhost:5000/'
  44. }
  45. pstatus (){
  46. sudo systemctl status pagure.service \
  47. pagure-docs.service \
  48. pagure_ci.service \
  49. pagure_ev.service \
  50. pagure_webhook.service \
  51. pagure_worker.service \
  52. pagure_authorized_keys_worker.service
  53. }
  54. alias plog="sudo journalctl -lu pagure.service"