start_System.sh 481 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. ### BEGIN INIT INFO
  3. # Provides: gsd
  4. # Required-Start: $remote_fs $syslog
  5. # Required-Stop: $remote_fs $syslog
  6. # Default-Start: 2 3 4 5
  7. # Default-Stop: 0 1 6
  8. # Short-Description: GSD
  9. # Description: GSD service startup
  10. ### END INIT INFO
  11. source /etc/profile
  12. echo "start openvpn"
  13. cd /opt/GSD/network/
  14. ./start_openvpn.sh
  15. sleep 5
  16. echo "start System"
  17. cd /opt/GSD/
  18. docker-compose up -d
  19. echo "123456" | sudo -S service cron start
  20. exit 0