2026-10-01 08:05:56 +02:00
|
|
|
[Unit]
|
|
|
|
|
Description=PrivaPub's own mongod (127.0.0.1:27022)
|
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=exec
|
|
|
|
|
User=www-data
|
|
|
|
|
Group=www-data
|
2026-10-07 11:21:13 +02:00
|
|
|
# a one-member replica set (rs0), so a backup reads every collection at one instant; its oplog kept small
|
2026-10-07 17:32:02 +02:00
|
|
|
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
|
2026-10-01 08:05:56 +02:00
|
|
|
Restart=always
|
|
|
|
|
RestartSec=5
|
|
|
|
|
LimitNOFILE=64000
|
|
|
|
|
SyslogIdentifier=privapub-mongod
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|