[Unit] Description=Data Center GPU Management Exporter After=network.target auditd.service [Service] Type=simple # dcgm-exporter wants to run as root User=root Group=daemon EnvironmentFile=-/etc/default/dcgm-exporter # NOTE: # systemd dups stdout to stderr unless StandardError gets set explicitly. # Since braindamaged systemd does not truncate the logfile on start but # overwrites the file starting at the first byte when using 'file:', we are # forced to use 'append:' to get something usable. StandardOutput=append:%L/dcgm-exporter.log StartLimitBurst=5 StartLimitInterval=10 Restart=always RestartSec=1 RestartPreventExitStatus=1 255 ExecStart=/usr/sbin/dcgm-exporter $ARGS ExecStop=/bin/kill -s SIGTERM $MAINPID LimitNOFILE=65536 LimitNPROC=32000 [Install] WantedBy=multi-user.target