[Zope] script start 4 debian
Chris Withers
chrisw at nipltd.com
Thu Sep 25 09:20:11 EDT 2003
Riccardo Gaggero wrote:
> I did not use apt-get install zope. but i install zope from tar file
> root can not start zope and i MUST login normal user (i created user named
> zope) end run script:
>
> /home/zope/Zope-2.6.2-linux2-x86/start
>
> who send me a script /etc/init.d/zope (it must work as any script
> etc/int.d/, using root)
Here ya go:
#! /bin/sh
case "$1" in
start)
echo "Starting Zope"
su "www-data" -c "/home/zope/Zope-2.6.2-linux2-x86/start"
;;
stop)
echo "Stopping Zope"
su "www-data" -c "/home/zope/Zope-2.6.2-linux2-x86/stop"
;;
*)
esac
make sure the www-data user exists ;-)
Chris
More information about the Zope
mailing list