Skip to content

Instantly share code, notes, and snippets.

@Genda1ph
Genda1ph / mongodb.service
Last active April 25, 2018 01:51 — forked from jwilm/mongodb.service
MongoDB systemd service unit configuration
[Unit]
Description=MongoDB Database Service
Wants=network.target
After=network.target
[Service]
Type=simple
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /var/lib/mongodb
ExecStartPre=/bin/chown mongodb:mongodb /var/lib/mongodb