How did this fail, what actually the mistake:
$ sudo openrc-run userAutoStart.sh start
userAutoStart.sh | * The command variable is undefined.
userAutoStart.sh | * There is nothing for userAutoStart.sh to start.
userAutoStart.sh | * If this is what you intend, please write a start function.
userAutoStart.sh | * This will become a failure in a future release.
The script is calling a python script
$ cat userAutoStart.sh
#!/sbin/openrc-run
xbacklight -set 40
Please show the fixing solution, thanks before
This is not the way to write and invoke openrc init scripts. Get a simple script from /etc/init.d and work upon it.
How ?
This actually try to do auto start of a shell script invoking that python one, as on XFCE Session & startup tha'd fail to work
If you are using XFCE, you can add an item in xfce4-session-settings
See the attached screenshot.
Such one-liners are more suitable for /etc/rc.local (or /etc/local.d/something.start). OpenRC will execute it at every boot.
How come in your way this takes quite time at least ~ 9 seconds after desktop GUI really ready
which way faster
guess original openrc service in bash script is faster or...
Please share your golden secret