Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: How doing openRC setup (Read 694 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

How doing openRC setup

How did this fail, what actually the mistake:

Code: [Select]
$ 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

Code: [Select]
$ cat   userAutoStart.sh 

#!/sbin/openrc-run

xbacklight -set 40

Please show the fixing solution, thanks before

Re: How doing openRC setup

Reply #1
This is not the way to write and invoke openrc init scripts. Get a simple script from /etc/init.d and work upon it.

 

Re: How doing openRC setup

Reply #2
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



Re: How doing openRC setup

Reply #5
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

Re: How doing openRC setup

Reply #6
How come in your way this takes quite time at least ~ 5 seconds after desktop GUI really ready
which way faster

guess original openrc service in bash script is faster or...
Please share your golden secret

What way are you using?