Skip to content

Instantly share code, notes, and snippets.

@Randommood
Created November 9, 2011 04:22
Show Gist options
  • Save Randommood/1350375 to your computer and use it in GitHub Desktop.
Save Randommood/1350375 to your computer and use it in GitHub Desktop.
tm99-s00026 ~ # sm --debug=mongodb mongodb configure
DEBUG mongodb: config path: /opt/sm/pkg/active/config/mongodb.conf
tm99-s00026 ~ # sm --debug=mongodb --force mongodb makedefaultconfig force
DEBUG mongodb: default config path: /etc/conf.d/mongodb.conf
tm99-s00026 ~ # cat /etc/conf.d/mongodb.conf
# Mongodb essentials
# MONGODB_EXEC="/opt/sm/pkg/active/bin/mongod"
# MONGODB_DATA="/db/mongodb/active/data"
# MONGODB_LOG="/etc/conf.d/mongodb.conf"
# MONGODB_USER="mongodb"
# MONGODB_PID_FILE="/var/run/mongodb/mongodb.pid"
#
# MONGODB_IP="0.0.0.0"
# MONGODB_PORT="27017"
#
# # Set extra options here, such as disabling the admin web server
# MONGODB_OPTIONS="--logappend --fork"
dbpath = "/db/mongodb/active/data"
bind_ip = "0.0.0.0"
logpath = "/etc/conf.d/mongodb.conf"
logappend = true
fork = true
tm99-s00026 ~ # sm mongodb install
[✔] mongodb 2.0.0 ~ dependencies
[✔] mongodb 2.0.0 ~ prefetch
[✔] mongodb 2.0.0 ~ fetch
[✔] mongodb 2.0.0 ~ patch
[✔] mongodb 2.0.0 ~ build
[✔] mongodb 2.0.0 ~ preinstall
[✔] mongodb 2.0.0 ~ install
[✔] mongodb 2.0.0 ..
[✔] mongodb 2.0.0 ~ ldconfig
[✔] done
[✔] mongodb 2.0.0
[✔] mongodb 2.0.0 ~ ldconfig
tm99-s00026 ~ # sm mongodb start
[ ] Starting mongodb...... all output going to: /etc/conf.d/mongodb.conf
forked process: 17771
[✔] Starting mongodb...
tm99-s00026 ~ # ps aux | grep mongo
root 17771 0.0 1.3 120648 13928 ? Sl 01:49 0:00 mongod --config /etc/conf.d/mongodb.conf
root 17786 0.0 0.0 3896 552 pts/0 R+ 01:49 0:00 grep --colour=auto mongo
tm99-s00026 ~ # sm mongodb status
process:
status: running
version: 2.0.0
process:
pid: 16940
awk: cmd. line:1: fatal: cannot open file `/proc/16940/status' for reading (No such file or directory)
A command has returned error code '(2)' without being handled.
+# source file # function()
================================================================================================================================================================================================================
/bin/nano +44 /opt/sm/core/internal/shell/process/functions # __sm.process.status
/bin/nano +780 /opt/sm/core/internal/shell/service/functions # __sm.service.status
/bin/nano +59 /opt/sm/core/api/shell/service/functions # service
/bin/nano +435 /opt/sm/core/sm/shell/log/functions # __sm.actions.call
/bin/nano +150 /opt/sm/core/internal/shell/extensions/execution/functions # __sm.extension.run
/bin/nano +150 /opt/sm/core/sm/shell/core/initialize # /opt/sm/core/sm/shell/core/initialize
/bin/nano +29 /opt/sm/bin/sm # /opt/sm/bin/sm
================================================================================================================================================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment