Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for _SYSTEMD_UNIT (0.09 sec)

  1. pkg/kubelet/kubelet_server_journal_linux.go

    func checkForNativeLogger(ctx context.Context, service string) bool {
    	// This will return all the journald units
    	cmd := exec.CommandContext(ctx, "journalctl", []string{"--field", "_SYSTEMD_UNIT"}...)
    	output, err := cmd.CombinedOutput()
    	if err != nil {
    		// Returning false to allow checking if the service is logging to a file
    		return false
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 11 01:09:28 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top