needrestart

Inherit

This allows to run Perl code (`...`).

echo '...' >/path/to/temp-file
needrestart -c /path/to/temp-file