I think I may have found the problem.
I thought in Ubuntu all runlevel scripts would run under root, but they don't.
They seem to be starting under the user "net" which is the user that automatically logins everytime the server starts. This is a problem because my startup script is this:
Code:
case "$1" in
'start')
su - zimbra -c "zmcontrol start"
;;
'stop')
su - zimbra -c "zmcontrol stop"
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0 And only root has permission to use su without entering some password (which I don't even know).
Somehow I either need to disable the password for su or come up with a new startup script.