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