Guest User

Untitled

a guest
Feb 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. ! /bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides: myApplication
  4. # Should-Start: $all
  5. # Required-Start: $remote_fs $network $local_fs
  6. # Required-Stop: $remote_fs
  7. # Default-Start: 5
  8. # Default-Stop: 0 6
  9. # Short-Description: start myprogram at boot time
  10. ### END INIT INFO
  11. #
  12.  
  13. set -e
  14.  
  15. . /lib/lsb/init-functions
  16. PATH=/root:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin
  17. PROGRAMNAME="myApplication"
  18. case "$1" in
  19. start)
  20. $PROGRAMNAME
  21. ;;
  22. stop)
  23. skill $PROGRAMNAME
  24. ;;
  25. esac
  26. exit 0
Add Comment
Please, Sign In to add comment