1. Create file .sh example
- nano /etc/init.d/startVbox.sh
2. Insert Code. For run command we wants.
- #!/bin/sh
- sudo vboxwebsrv -H 127.0.0.1 > null
OR
- #!/bin/sh
- sudo service apache2 restart
3. insert to crontab by. insert @reboot /path file
- crontab -e
- @reboot /etc/init.d/startVbox.sh
4. Test reboot. After reboot code in crontab just run.
http://ubuntuforums.org/showthread.php?t=2170820
No comments:
Post a Comment