aboutsummaryrefslogtreecommitdiffstats
path: root/HACKING
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 /HACKING
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 'HACKING')
-rw-r--r--HACKING12
1 files changed, 10 insertions, 2 deletions
diff --git a/HACKING b/HACKING
index a6b0a93..ce3bfbd 100644
--- a/HACKING
+++ b/HACKING
@@ -8,9 +8,17 @@ The bootstrap script will use autotools to set up the build environment
and create the `configure` script.
Use `./configure --help' for options. Use `--prefix' to make an install in
-your home directory. This is necessary to test python scripts. Example:
+your home directory. This is necessary to test python scripts. The systemd
+user unit directory should be set to avoid writing to the system location.
- $ ./configure --prefix=$HOME/redshift/root
+Systemd will look for the unit files in `~/.config/systemd/user` so this
+directory can be used as a target if the unit files will be used. Otherwise
+the location can be set to `no` to disable the systemd files.
+
+Example:
+
+ $ ./configure --prefix=$HOME/redshift/root \
+ --with-systemduserunitdir=$HOME/.config/systemd/user
Now, build the files: