From a6f07cbb0e5f20d1033502e3e5b86fe0213e7a5a Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Fri, 7 Mar 2014 02:16:06 -0500 Subject: 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. --- HACKING | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'HACKING') 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: -- cgit v1.2.3-70-g09d2