Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. ### BEGIN INIT INFO
  2. # Provides: After network script launching
  3. # Required-Start: $network
  4. # Required-Stop: $network
  5. # Default-Start: 2 3 4 5
  6. # Default-Stop: 0 1 6
  7. # Short-Description: start a network dependent script
  8. # Description: Network dependent script launcher
  9. ### END INIT INFO
  10.  
  11. do_start()
  12. {
  13. # Return
  14. # 0 if daemon has been started
  15. # 1 if daemon was already running
  16. # 2 if daemon could not be started
  17.  
  18. cd /my/script/dir && ./myScript.sh
  19.  
  20. # Add code here, if necessary, that waits for the process to be ready
  21. # to handle requests from services started subsequently which depend
  22. # on this one. As a last resort, sleep for some time.
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement