linux sap netweaver 自启动脚本

[root@redhat5 n4sadm]# more S99n4shost.sh
#!/bin/sh

# See how we were called.
case "$1" in
  start)
    su n4sadm -c "startsap n4shost" >/dev/null 2>&1
    ;;
  stop)
    su n4sadm -c "stoptsap n4shost" >/dev/null 2>&1
    ;;
  status)

    ;;
  restart)

    ;;
  *)
    echo $"Usage: $0 {start|stop|status|condrestart|restart}"
    exit 1
esac

exit $?

你可能感兴趣的:(C++,c,linux,脚本,C#)