Add systemd .service file for redshift

Add a systemd user .service file to allow users to run redshift as a
daemon using systemd. Also adds a new configure option,
`--with-systemduserunitdir`, which gives the install path.

If set to `no`, systemd support is disabled.
If not set, we use `pkg-config` to find the path.
This commit is contained in:
Henry de Valence
2014-03-20 17:27:00 +01:00
committed by Jon Lund Steffensen
parent e26337db2e
commit a6f07cbb0e
4 changed files with 66 additions and 3 deletions
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=Redshift display colour temperature adjustment
Documentation=http://jonls.dk/redshift/
After=display-manager.service
[Service]
ExecStart=@bindir@/redshift
Restart=always
[Install]
WantedBy=default.target