Menu

Cant get this to run at startup.

Anonymous
2015-02-04
2015-02-13
  • Anonymous

    Anonymous - 2015-02-04

    I am unable to get this to run at startup. I have CentOS 6.6 I can run it manually and it works without issue. I went so far as to write a init.d for it to try and same issue happens.

    !/bin/bash

    chkconfig: 35 90 12

    Get function from functions library

    . /etc/init.d/functions

    Start the service BGINFO4X

    start() {
    initlog -c "echo -n Starting BGINFO4X: "
    /usr/local/bin/BGINFO4X/BGINFO4X.sh &
    ### Create the lock file ###
    touch /var/lock/subsys/BGINFO4X
    success $"BGINFO4X Started"
    echo
    }

    Restart the service BGINFO4X

    stop() {
    initlog -c "echo -n Stopping BGINFO4X: "
    killproc BGINFO4X
    ### Now, delete the lock file ###
    rm -f /var/lock/subsys/BGINFO4X
    echo
    }

    main logic

    case "$1" in
    start)
    start
    ;;
    stop)
    stop
    ;;
    status)
    status BGINFO4X
    ;;
    restart|reload|condrestart)
    stop
    start
    ;;
    *)
    echo $"Usage: $0 {start|stop|restart|reload|status}"
    exit 1
    esac
    exit 0

    [root@CENTOS65X64-Template init.d]# ./bginfo start
    ./bginfo: line 9: initlog: command not found
    /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 24: BIN/CONF/BGINFO4X.EC: No such file or directory
    /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 25: BIN/CONF/BGINFO4X.CONF: No such file or directory
    [/usr/local/bin/BGINFO4X/BGINFO4X.sh: line 28: BIN/DB.sh: No such file or directory
    /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 29: BIN/CS.sh: No such file or directory
    OK /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 30: BIN/KA.sh: No such file or directory
    /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 31: BIN/OF.sh: No such file or directory
    ]
    /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 32: BIN/FT.sh: No such file or directory
    /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 33: BIN/EX.sh: No such file or directory

    /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 34: BIN/IM.sh: No such file or directory
    /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 35: BIN/RT.sh: No such file or directory
    /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 36: BIN/PM.sh: No such file or directory
    [root@CENTOS65X64-Template init.d]# /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 103: prepareENVIRONMENT_DB: command not found
    /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 103: iniALL_DB: command not found
    /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 41: BG_DB: command not found
    /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 45: BG_DB: command not found
    /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 104: reloadVARIABLES_FT: command not found
    /usr/local/bin/BGINFO4X/BGINFO4X.sh: line 49: BG_DB: command not found

    CentOS instructions
    http://www.techotopia.com/index.php/Starting_CentOS_6_Desktop_Applications_on_Login

    Also fail.

    Any ideas?

     
  • BGINFO for X and for Windows!

    Hello,

    It seems that BGINFO4X is not in your $PATH or you need to cd to /usr/local/bin/BGINFO4X and then start BGINFO4X.sh from there.

    Try it. Thanks.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.