Skip to content

Instantly share code, notes, and snippets.

@jcberthon
Created July 20, 2012 12:48

Revisions

  1. jcberthon created this gist Jul 20, 2012.
    27 changes: 27 additions & 0 deletions init_end_boot_script
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    #!/bin/sh

    ### BEGIN INIT INFO
    # Provides: nothing
    # Required-Start: $all
    # Default-Start: 3 5
    # Default-Stop: 4
    # Short-Description: single_line_description
    # Description: multiline_description
    ### END INIT INFO

    case "$1" in
    start)
    echo -n "Starting TEST daemon"
    echo "Test" >> /var/tmp/test
    ;;
    stop)
    echo -n "Shutting down CRON daemon"
    echo "Ciao..." >> /var/tmp/test
    ;;
    *)
    echo "Usage: $0 {start|stop}"
    exit 1
    ;;
    esac

    exit 0