#!/bin/sh  
#  
#chkconfig: 2345 80 90  
#description: mongodb  
start() {
 /usr/local/yunshipei/enterplorer/mongodb/bin/mongod -f /usr/local/yunshipei/enterplorer/mongodb/etc/mongodb.conf
}

stop() {
 /usr/local/yunshipei/enterplorer/mongodb/bin/mongod -f /usr/local/yunshipei/enterplorer/mongodb/etc/mongodb.conf --shutdown
}

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

 

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2021-08-11
  • 2021-08-31
  • 2021-12-23
  • 2021-12-28
  • 2021-09-24
猜你喜欢
  • 2021-11-17
  • 2021-06-23
  • 2022-12-23
  • 2022-03-03
  • 2021-10-10
  • 2021-08-15
相关资源
相似解决方案