https://t.me/RX1948
Server : nginx/1.24.0
System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
Directory :  /usr/share/apport/package-hooks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/apport/package-hooks/source_nginx.py
'''
apport package hook for nginx packages

Copyright (c) 2015, Thomas Ward <teward@ubuntu.com>
'''

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]

https://t.me/RX1948 - 2025