-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hopefully improve service file for autostart
- Loading branch information
Showing
1 changed file
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
[Unit] | ||
Description=Nfancurve service | ||
After=graphical-session.target | ||
Requires=graphical-session.target | ||
After=default.target | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
[Service] | ||
ExecStart=/bin/sh /usr/bin/nfancurve -c /etc/nfancurve.conf | ||
KillSignal=SIGINT | ||
|
||
[Install] | ||
WantedBy=graphical-session.target | ||
WantedBy=default.target |
Why was this changed? I interpret https://www.freedesktop.org/software/systemd/man/systemd.special.html#graphical-session.target as follows: The nfancurve daemon requires a running X session, and as such should be started after
graphical-session.target
is reached and installed bygraphical-session.target
.