[Unit] Description=VictoriaMetrics time series database After=network.target local-fs.target auditd.service [Service] Type=simple User=daemon Group=daemon Environment='DB_PATH=/var/lib/vmdb' EnvironmentFile=-/etc/default/vmdb # Just make sure, that the default dir exists StateDirectory=vmdb # NOTE: systemd dups stdout to stderr unless StandardError gets set explicitly. StandardOutput=append:%L/vmdb.log StartLimitBurst=5 StartLimitInterval=10 Restart=always RestartSec=1 RestartPreventExitStatus=255 ExecStart=/usr/sbin/vmdb $ARGS -storageDataPath=${DB_PATH} ExecStop=/bin/kill -s SIGTERM $MAINPID LimitNOFILE=65536 LimitNPROC=32000 MemoryLow=2G MemoryMin=1.5G [Install] WantedBy=multi-user.target