Whats wrong with "systemd-analyze verify /etc/systemd/*.conf"

These systemd *.conf files are from Manjaro install, but

systemd-analyze verify /etc/systemd/*.conf

complains as you can see:

https://i.imgur.com/b4cFg4W.png

systemd 252 (252.9-1-manjaro)

I’m a total newbee to systemd configuring but i try to learn

So what is wrong with these files?

Info about my PC:

Generated on 2023-04-13 14:07:1681387632

#################### inxi -Fxzc0 ########################

System:
  Kernel: 6.1.23-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1 Desktop: Xfce v: 4.18.1
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 81RS v: Lenovo Yoga S740-14IIL serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN serial: <superuser required> UEFI: LENOVO
    v: BYCN39WW date: 05/28/2021
Battery:
  ID-1: BAT0 charge: 64.2 Wh (98.3%) condition: 65.3/62.0 Wh (105.3%) volts: 17.1 min: 15.4
    model: LGC L19L4PD2 status: full
CPU:
  Info: quad core model: Intel Core i7-1065G7 bits: 64 type: MT MCP arch: Ice Lake rev: 5 cache:
    L1: 320 KiB L2: 2 MiB L3: 8 MiB
  Speed (MHz): avg: 3052 high: 3900 min/max: 400/3900 cores: 1: 3807 2: 3900 3: 1500 4: 2820
    5: 3502 6: 3889 7: 3500 8: 1500 bogomips: 23968
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Iris Plus Graphics G7 vendor: Lenovo driver: i915 v: kernel arch: Gen-11
    bus-ID: 00:02.0
  Device-2: NVIDIA GP108M [GeForce MX250] vendor: Lenovo driver: nvidia v: 530.41.03 arch: Pascal
    bus-ID: 2b:00.0
  Device-3: Chicony Integrated Camera type: USB driver: uvcvideo bus-ID: 3-5:5
  Display: x11 server: X.Org v: 21.1.8 driver: X: loaded: modesetting,nvidia unloaded: nouveau
    dri: iris gpu: i915 resolution: 1: 1920x1080~60Hz 2: N/A
  API: OpenGL v: 4.6 Mesa 23.0.2 renderer: Mesa Intel Iris Plus Graphics (ICL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Lenovo driver: sof-audio-pci-intel-icl
    bus-ID: 00:1f.3
  API: ALSA v: k6.1.23-1-MANJARO status: kernel-api
  Server-1: sndiod v: N/A status: off
  Server-2: PipeWire v: 0.3.68 status: active
Network:
  Device-1: Intel Ice Lake-LP PCH CNVi WiFi driver: iwlwifi v: kernel bus-ID: 00:14.3
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 bus-ID: 2-1.4:4
  IF: enp0s13f0u1u4 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: pan1 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-10:8
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Drives:
  Local Storage: total: 1.86 TiB used: 471.21 GiB (24.8%)
  ID-1: /dev/nvme0n1 vendor: Micron model: MTFDHBA1T0TCK size: 953.87 GiB temp: 58.9 C
  ID-2: /dev/sda type: USB vendor: Western Digital model: WD10EARX-00N0YB0 size: 931.51 GiB
  ID-3: /dev/sdb type: USB vendor: Kingston model: DataTraveler 2.0 size: 14.54 GiB
Partition:
  ID-1: / size: 57.85 GiB used: 49.12 GiB (84.9%) fs: ext4 dev: /dev/nvme0n1p8
  ID-2: /boot/efi size: 259.5 MiB used: 115 MiB (44.3%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 16.67 GiB used: 0 KiB (0.0%) dev: /dev/nvme0n1p9
Sensors:
  System Temperatures: cpu: 60.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 285 Uptime: 2h 28m Memory: 15.19 GiB used: 2.88 GiB (19.0%) Init: systemd Compilers:
  gcc: 12.2.1 clang: 15.0.7 Packages: 1986 Client: Unknown Client: wrapper-2.0 inxi: 3.3.26

A conf file is not a unit file.

systemd-analyze verify /etc/systemd/system/*.service

I asked ChatGPT how to check the syntax and got this wrong answer:

https://imgur.com/jnw7gM7.png

Sorry.it’s in german

Anyway: don’t trust ChatGPT!

Oh now, my fault he’s talking about service.conf

Please never post terminal output as image.

My second PC just crasht, i think giving up for today …

What about this, ChatGPT is wrong?

[john1@manjaro ~]$ locate -i service.conf
/home/john1/.anydesk/service.conf
/usr/lib/systemd/portable/profile/default/service.conf
/usr/lib/systemd/portable/profile/nonetwork/service.conf
/usr/lib/systemd/portable/profile/strict/service.conf
/usr/lib/systemd/portable/profile/trusted/service.conf
/usr/share/dbus-1/system.d/nm-openconnect-service.conf
/usr/share/dbus-1/system.d/nm-openvpn-service.conf
/usr/share/dbus-1/system.d/nm-pptp-service.conf
/usr/share/dbus-1/system.d/nm-vpnc-service.conf
/usr/share/postgresql/pg_service.conf.sample
[john1@manjaro ~]$ sudo systemd-analyze verify /usr/lib/systemd/portable/profile/default/service.conf
[sudo] Passwort für john1: 
Failed to prepare filename /usr/lib/systemd/portable/profile/default/service.conf: Das Argument ist ungültig
[john1@manjaro ~]$ sudo systemd-analyze verify /usr/lib/systemd/portable/profile/default/service.conf

Check journalctl -p err -b -1 --no-pager after your PC crashes and restart


Linux world creates endless different configurations that developers want to plan themselves. Useless, ChatGPT takes more time to learn from internet.

If a developer creates or modifies default configuration from rolling release, but ChatGPT is not learning yet, that’s why you read wrong solution from ChatGPT output.
You should ask the developer directly or follow actual official document, for example: man systemd-analyze or systemd-analyze --help

First impression of ChatGPT impressed me “as hell”: it gave me a working script to restore active cell in google sheets … and more of working bash scripts so i trusted it … but just learned: you have to very yourself what ChtGPT is telling you :frowning:

p.s. second PC works again :slight_smile:

journalctl -b 2 -p err shows no errors!

It does not initialized Video or mouse!

Dell XPS 630i from 2008 ?!

ChatGPT is not an expert system or a knowledgable AI.
It is based upon a language model, it will happily talk to you all day long in a manner that may make you wonder whether you are talking to a human or not.
But that is all. It can talk nicely.
If you tell it that it has been wrong, it will politely apologize and feed you more possibly false info in a convincing and nice sounding manner.
It can talk nicely - but the content is not to be trusted beyond the grammar and syntax …

Just use $Google and your own discernment. :grin: