Skip to content

Commit

Permalink
misc_systemd_units/gdm: Fix syntax for negation
Browse files Browse the repository at this point in the history
Currently, systemd shows the warning below.

    [3223831.579201] systemd[1]: /etc/systemd/system/gdm.service:5: Unknown lvalue '!ConditionPathExists' in section 'Unit'

According to systemd.unit(5) the absolute path name passed to
`ConditionPathExists=` needs to be prefixed with an exclamation mark.

Change the service unit accordingly, and the error is gone.

Currently, on *sigusr2*, tagged with *lightdm* both GDM and LightDM are
running.
  • Loading branch information
pmenzel committed Dec 19, 2018
1 parent 5712993 commit 7379b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc_systemd_units/gdm.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Description=GDM
Wants=nvidia.service
After=nvidia.service
!ConditionPathExists=/node/tags/lightdm
ConditionPathExists=!/node/tags/lightdm

[Service]
ExecStart=/usr/sbin/gdm
Expand Down

0 comments on commit 7379b53

Please sign in to comment.