aboutsummaryrefslogtreecommitdiffstats
path: root/data/systemd/redshift.service.in
diff options
context:
space:
mode:
authorHenry de Valence <hdevalence@hdevalence.ca>2014-03-07 02:16:06 -0500
committerJon Lund Steffensen <jonlst@gmail.com>2014-03-20 17:27:00 +0100
commita6f07cbb0e5f20d1033502e3e5b86fe0213e7a5a (patch)
tree5f8a90908400999b35a11a96eed2e33ce36132b6 /data/systemd/redshift.service.in
parentOutcomment .gitignore line that erroneously blocks the src/redshift-gtk dir (diff)
downloadredshift-ng-a6f07cbb0e5f20d1033502e3e5b86fe0213e7a5a.tar.gz
redshift-ng-a6f07cbb0e5f20d1033502e3e5b86fe0213e7a5a.tar.bz2
redshift-ng-a6f07cbb0e5f20d1033502e3e5b86fe0213e7a5a.tar.xz
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.
Diffstat (limited to 'data/systemd/redshift.service.in')
-rw-r--r--data/systemd/redshift.service.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/data/systemd/redshift.service.in b/data/systemd/redshift.service.in
new file mode 100644
index 0000000..bc51514
--- /dev/null
+++ b/data/systemd/redshift.service.in
@@ -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