Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ! /bin/sh
- ### BEGIN INIT INFO
- # Provides: myApplication
- # Should-Start: $all
- # Required-Start: $remote_fs $network $local_fs
- # Required-Stop: $remote_fs
- # Default-Start: 5
- # Default-Stop: 0 6
- # Short-Description: start myprogram at boot time
- ### END INIT INFO
- #
- set -e
- . /lib/lsb/init-functions
- PATH=/root:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin
- PROGRAMNAME="myApplication"
- case "$1" in
- start)
- $PROGRAMNAME
- ;;
- stop)
- skill $PROGRAMNAME
- ;;
- esac
- exit 0
Add Comment
Please, Sign In to add comment