#!/bin/sh SROOT=/opt/resin(注意resin的目录) RESIN_OWNER=resin(注意resin的用户) case "$1" in start) su - $RESIN_OWNER -c "$SROOT/bin/httpd.sh start" ;; stop) su - $RESIN_OWNER -c "$SROOT/bin/httpd.sh stop" ;; *) echo 'Usage:resin {start|stop}';; esac exit 0