Move tarball compression to background service;Housekeeping
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-11-23 10:25:35 +01:00
parent 0d7b1ab269
commit c9a8598a35
5 changed files with 49 additions and 12 deletions

View File

@ -0,0 +1,10 @@
#!/bin/bash
# Change working directory
popd {{ _template.service.workingdir }}
# Compress *.tar files
if tar -czf image-tarballs.tgz *.tar; then
# Disable systemd unit
systemctl disable {{ _template.service.name }}
fi

View File

@ -0,0 +1,9 @@
[Unit]
Description={{ _template.service.name }}
[Service]
ExecStart={{ _template.service.executable }}
Nice=10
[Install]
WantedBy=multi-user.target