[Unit] Description=Linux Manager metrics service Documentation=file:/usr/share/doc/linux-manager/README.md After=network-online.target postgresql.service linux-manager-web.service Wants=network-online.target [Service] Type=simple ExecStartPre=/usr/lib/linux-manager/wait-for-libpq ExecStart=/usr/bin/python3 /usr/lib/linux-manager/metrics TimeoutStartSec=5min Restart=on-failure RestartSec=15 NoNewPrivileges=yes ProtectSystem=strict RuntimeDirectory=linux-manager RuntimeDirectoryPreserve=yes ProtectHome=yes PrivateTmp=yes [Install] WantedBy=multi-user.target