From 87373d966a515bb46b7dbe1cbb9c1743d41ab41b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Thu, 17 Mar 2016 20:49:34 +0100 Subject: [PATCH] Write redshift PID file. --- autostart/autostart/redshift.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/autostart/autostart/redshift.sh b/autostart/autostart/redshift.sh index 5e5e72a..52e27b2 100755 --- a/autostart/autostart/redshift.sh +++ b/autostart/autostart/redshift.sh @@ -4,3 +4,4 @@ redshift_colortemp="6000:3300" log "starting redshift-gtk" redshift-gtk -b 1 -l "$redshift_lat_long" -t "$redshift_colortemp" & &>> "$LOGFILE" +printf '%s' $! > "$RUNDIR"/redshift.pid