Pantographe.guide

Maintenance

APT

Reinstall package

$ sudo apt install --reinstall PKG_NAME

After installation failure

$ sudo dpkg --configure -a

Dokku

Application maintenance

$ dokku maintenance:custom-page APP < my-custom-page.tar

$ dokku maintenance:on APP
$ dokku maintenance:off APP

Cleanup old excited containers

$ dokku cleanup

GitLab runner autoscaled

# List workers
$ docker exec -it gitlab-runner docker-machine ls

# Logs
$ docker logs gitlab-runner -f --tail 50

Other

Schedule a server reboot

$ echo "shutdown -r now" | sudo at 23:59
warning: commands will be executed using /bin/sh
job 1 at Fri Nov 30 23:59:00 2018

$ sudo at -l
1 Fri Nov 30 23:59:00 2018 a root

Copy image disk to usb key

pv /path/to/file.img |sudo dd bs=1m of=/dev/rdiskX

< Back
Last updated at: September 27, 2020