rqcs start up script for ubuntu

There are 4 replies in this Thread which was already clicked 1,749 times. The last Post () by stien.

  • hello
    i am running rqcs on ubuntu 10.4.i have to start manuly.can any one tel me how can i make it run on boot please.



    What you have to do


    1st make your script executable sudo chmod +x (filename)


    2nd
    go to
    /etc
    and edit rc.local
    and add your script there
    every reboot restart script


    greetz


    doomer

  • would this script be ok?


    #! /bin/sh
    # /etc/init.d/rqcs
    #


    # Some things that run always
    touch /var/lock/rqcs


    # Carry out specific functions when asked to by the system
    case "$1" in
    start)
    echo "Starting script rqcs "
    echo "Could do more here"
    ;;
    stop)
    echo "Stopping script rqcs"
    echo "Could do more here"
    ;;
    *)
    echo "Usage: /etc/init.d/rqcs {start|stop}"
    exit 1
    ;;
    esac


    exit 0

  • hello i added this script to etc/init.d and used command update-rqcs defaults then chmod +x rqcs
    but it wont start up aat reboot can any one help here please!




    #! /bin/sh
    # /etc/init.d/rqcs
    #


    # Some things that run always
    DAEMONPATH=/usr/local/rqcs


    # Carry out specific functions when asked to by the system
    case "$1" in
    start)
    echo "Starting script rqcs "
    echo "Could do more here"
    ;;
    stop)
    echo "Stopping script rqcs"
    echo "Could do more here"
    ;;
    *)
    echo "Usage: /etc/init.d/rqcs {start|stop}"
    exit 1
    ;;
    esac


    exit 0

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!