Skip to content

Instantly share code, notes, and snippets.

View GAZ082's full-sized avatar

Gabriel GAZ082

View GitHub Profile
@hoducha
hoducha / letsencrypt-renew-nginx.sh
Created December 4, 2016 08:22
This script run letsencrypt renew and reload Nginx if there is any certificates renewed
#!/bin/sh
# This script renews all the Let's Encrypt certificates with a validity < 30 days
RENEW_LOG=/var/log/letsencrypt/renew.log
if ! letsencrypt renew > $RENEW_LOG 2>&1 ; then
echo Automated renewal failed:
cat $RENEW_LOG
exit 1
fi
@nepsilon
nepsilon / how-to-detach-process.md
Last active October 3, 2023 09:59
How to detach a process from the current terminal? — First published in fullweb.io issue #37

How to detach a process from the current terminal?

Closing the terminal will kill all processes launched from its shell instance that are still running. Here is how to detach a running process and run+detach a new process:

Scenario 1:

Let’s say we have ./long.sh running, and we want to detach it:

./long.sh