instantcert and kill_zombies
This commit is contained in:
parent
4d8ff7d7b8
commit
6e5c55b0bf
5
bash/instantcert.sh
Normal file
5
bash/instantcert.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
# http://www.akadia.com/services/ssh_test_certificate.html
|
||||
# create and sign openssl-cert
|
||||
openssl genrsa -des3 -out server.key 1024 && openssl req -new -key server.key -out server.csr && cp server.key server.key.org && openssl rsa -in server.key.org -out server.key && openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
|
||||
|
3
bash/kill_zombies.sh
Normal file
3
bash/kill_zombies.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
# killing zombies if possible
|
||||
kill -HUP `ps -A -ostat,ppid,pid,cmd | grep -e '^[Zz]' | awk '{print $2}'`; kill -TERM `ps -A -ostat,ppid,pid,cmd | grep -e '^[Zz]' | awk '{print $2}'`
|
Loading…
Reference in New Issue
Block a user