[Unit] Description=Clean Log Files on shutdown After=remote-fs.target nss-user-lookup.target [Service] RemainAfterExit=yes ExecStart= ExecStop=/usr/local/bin/limpalog.sh [Install] WantedBy=multi-user.target