Skip to content

Hooks not running #850

@yannickperrenet

Description

@yannickperrenet

Describe the bug
Redshift does not trigger any hooks.

According to #335 hooks are now also running on startup, but when I run redshift my hooks do not run (from what I can tell).

To Reproduce
Create an executable file ~/.config/redshift/hooks/test.sh with content:

#!/bin/sh
case $1 in
    period-changed)
        exec touch /home/ubuntu/myredshifthook
esac

Next I start redshift using redshift and I don't see the file being created.

Expected behavior
The hook should run and create the given file.

Software versions (please complete the following information):

  • OS: Linux
  • Redshift version: 1.12
  • Distribution: Ubuntu 21.04
  • Redshift installed from: "using apt-get"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions