Files
SocialPub/deploy/systemd/privapub-mongod.service
T
thepraandClaude Opus 5.5 4eda3da75d
Build / Build (push) Successful in 8m26s
Deploy / privapub.thepra.dev (push) Successful in 8m53s
mongod's oplog size flag is --oplogSize on the command line
--oplogSizeMB is the configuration file's key (replication.oplogSizeMB); mongod refuses it as a flag, so setup.sh's
replica-set step left the unit restarting until the flag was fixed on Max.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
2026-10-07 17:32:02 +02:00

18 lines
521 B
Desktop File

[Unit]
Description=PrivaPub's own mongod (127.0.0.1:27022)
After=network.target
[Service]
Type=exec
User=www-data
Group=www-data
# a one-member replica set (rs0), so a backup reads every collection at one instant; its oplog kept small
ExecStart=/usr/bin/mongod --dbpath /var/lib/privapub/mongo --port 27022 --bind_ip 127.0.0.1 --noauth --wiredTigerCacheSizeGB 0.25 --replSet rs0 --oplogSize 990 --quiet
Restart=always
RestartSec=5
LimitNOFILE=64000
SyslogIdentifier=privapub-mongod
[Install]
WantedBy=multi-user.target