Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm having a problem, I can start up the service by hand easily check out this screenshot

No repu http://i.stack.imgur.com/nAmo4.png http://i.stack.imgur.com/5DF4A.png

Those S80policyserver and S80chatserver are the symbolic links. I don't know what those S80's suppose to mean.. but hopefully not to important.

Here is my policyserver script, which works when I type it.. but doesn't even get ran when I restart my Parallels Power Panel

#!/bin/bash
#
# policyserver: Startup script for Policy Server Application.
#
# chkconfig: 35 80 05
# description: Startup script for Policy Server Application.

CAMSPARK_POLICY_HOME=/var/local/camsparkserver/Policy;
export CAMSPARK_POLICY_HOME

start() {
        echo -n "Starting Policy Server: "
        $CAMSPARK_POLICY_HOME/Policy.sh start
        sleep 2
        echo "done"
}

stop() {
        echo -n "Stopping Policy Server: "
        $CAMSPARK_POLICY_HOME/Policy.sh stop
        echo "done"
}

# See how we were called.
case "$1" in
        start)
                start
                ;;
        stop)
                stop
                ;;
        restart)
                stop
                start
                ;;
        *)
                echo $"Usage: policyserver {start|stop|restart}"
                exit
esac

Let me know whats wrong

share|improve this question
    
The text in the screenshots is far too small to read. –  Starfish Jan 20 '12 at 3:35

1 Answer 1

"chkconfig chatserver on" should take care of all the hassles in managing those symlinks for you.

service chatserver start
service chatserver stop 

etc. to test it (my guess is you have something in your environment that isn't present there when it starts at boot)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.