系統 - Debian - Memory - 如何使用ValGrind測試Service程式



參考資訊:
https://access.redhat.com/solutions/3120401

從Service Link修改

# systemctl edit --full irqbalance.service

[Unit]
Description=irqbalance daemon
After=syslog.target

[Service]
EnvironmentFile=/etc/sysconfig/irqbalance
ExecStart=/usr/bin/valgrind --tool=memcheck --leak-check=yes --log-file=/var/log/valgrind/irqbalance.log /usr/sbin/irqbalance --foreground $IRQBALANCE_ARGS

[Install]
WantedBy=multi-user.target