Greetings,
In short, I have created a script which suppose to run 'redshift' to alter some gamma etc.
It runs well by starting manually:
However, it 'never' runs on boot. I also added
boot log:
Script:
In short, I have created a script which suppose to run 'redshift' to alter some gamma etc.
It runs well by starting manually:
sudo /usr/local/etc/rc.d/redshift start
However, it 'never' runs on boot. I also added
redshift_enable="YES"
to rc.conf
Code:
-rwxr-xr-x 1 root wheel 344 Oct 14 21:52 redshift
Code:
Oct 14 21:57:01 <console.info> kernel: redshift starting
Oct 14 21:57:01 <console.info> kernel: Starting avahi-daemon.
Oct 14 21:57:01 <console.info> kernel: `RANDR Query Version' returned error -1
Oct 14 21:57:01 <console.info> kernel: Initialization of randr failed.
Oct 14 21:57:01 <console.info> kernel: Trying next method...
Oct 14 21:57:01 <console.info> kernel: No more methods to try.
Oct 14 21:57:01 <console.info> kernel: Starting hald.
Script:
Code:
#!/bin/sh
# PROVIDE: redshift
. /etc/rc.subr
name="redshift"
start_cmd="${name}_start"
stop_cmd="${name}_stop"
redshift_start() {
echo "redshift starting"
# your commands here
/usr/local/bin/redshift -O 6200 -g 0.7:0.7:0.7 -P &
}
redshift_stop() {
echo "redshift stopping"
# your commands here
}
run_rc_command "$1"
# eof