- Create mongodb-tractatus.service for systemd management - Add installation script for service setup - Create init-db.js with complete collection schemas and indexes - Configure 10 MongoDB collections: documents, blog_posts, media_inquiries, case_submissions, resources, moderation_queue, users, citations, translations, koha_donations - Add indexes for performance optimization - Include verification and statistics output MongoDB Port: 27017 Database: tractatus_dev Status: Ready for service installation
37 lines
854 B
Desktop File
37 lines
854 B
Desktop File
[Unit]
|
|
Description=MongoDB Database Server for Tractatus
|
|
Documentation=https://docs.mongodb.org/manual
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
User=theflow
|
|
Group=theflow
|
|
|
|
# MongoDB executable and configuration
|
|
ExecStart=/home/theflow/projects/mongodb/mongodb-server/bin/mongod \
|
|
--port 27017 \
|
|
--dbpath /home/theflow/projects/tractatus/data/mongodb \
|
|
--logpath /home/theflow/projects/tractatus/logs/mongodb.log \
|
|
--fork \
|
|
--quiet
|
|
|
|
ExecStop=/home/theflow/projects/mongodb/mongodb-server/bin/mongod \
|
|
--port 27017 \
|
|
--dbpath /home/theflow/projects/tractatus/data/mongodb \
|
|
--shutdown
|
|
|
|
# Restart policy
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
# Security settings
|
|
PrivateTmp=true
|
|
NoNewPrivileges=true
|
|
LimitNOFILE=64000
|
|
|
|
# Working directory
|
|
WorkingDirectory=/home/theflow/projects/tractatus
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|