Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MongoDB: konfiguracja na Fedorze 16

  • Loading branch information...
commit 1687d6b2a904ff410ee7ee83f0769711eb02c1ef 1 parent 65797e1
@wbzyl authored
View
13 lib/x/fedora/f16/mongod-service.txt
@@ -0,0 +1,13 @@
+[Unit]
+Description=High-performance, schema-free document-oriented database
+After=syslog.target network.target
+
+[Service]
+Type=forking
+User=mongodb
+PIDFile=/var/run/mongodb/mongodb.pid
+EnvironmentFile=/etc/sysconfig/mongod
+ExecStart=/usr/bin/mongod $OPTIONS run
+
+[Install]
+WantedBy=multi-user.target
View
1  lib/x/fedora/f16/mongod-sysconfig.txt
@@ -0,0 +1 @@
+OPTIONS="--quiet -f /etc/mongodb.conf"
View
12 lib/x/fedora/f16/mongodb-logrotate.txt
@@ -0,0 +1,12 @@
+/var/log/mongodb/*.log {
+ weekly
+ rotate 10
+ copytruncate
+ delaycompress
+ compress
+ notifempty
+ missingok
+ postrotate
+ /bin/kill -USR1 `cat /var/run/mongodb/mongodb.pid 2>/dev/null` 2> /dev/null|| true
+ endscript
+}
Please sign in to comment.
Something went wrong with that request. Please try again.