All: I've got a service start script that I'm getting the following error when I try to start it: /sbin/service: /etc/init.d/zope: bad interpreter: No such file or directory It use to work but I just reinstalled Zope under a new directory and change it in the script to point it; here's the script: #!/bin/sh:q! # # zope Start/Stop the Zope web-application server. # # chkconfig: 2345 72 72 # description: zope is a web server specifically for handling \ # HTTP requests to the Zope web-application service. # probe: true # Source function library. #!/bin/sh:q! # # zope Start/Stop the Zope web-application server. # # chkconfig: 2345 72 72 # description: zope is a web server specifically for handling \ # HTTP requests to the Zope web-application service. # probe: true # Source function library. . /etc/init.d/functions RETVAL=0 start() { echo -n $"Starting up Zope: " /var/www/zopee/start >> /var/log/zope/messages 2>&1 & RETVAL=$? echo } stop() { echo -n $"Shutting down Zope: " /var/www/zopee/stop RETVAL=$? echo } restart() { stop start RETVAL=$? } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart|reload) restart ;; *) echo "Usage: zope {start|stop|restart|reload}" exit 1 esac exit $RETVAL Any help would be greatful! ________________________________ Todd Loomis
From: zope-bounces@zope.org [mailto:zope-bounces@zope.org]On Behalf Of Loomis, Todd, CTR, DMSO /sbin/service: /etc/init.d/zope: bad interpreter: No such file or directory #!/bin/sh:q! Your problem is on that line above - you've stuck the ":q!" (which tells us all you use vi!) on the end of the shell name. Remove it and all will be well. And that's not really a Zope problem... regards b Ben Last Technical Director SleepyDog ben@sleepydog.net ben@benlast.com ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
participants (2)
-
Ben Last -
Loomis, Todd, CTR, DMSO