What is the best way to have a bunch of user-defined runit scripts that are all meant to…
- User
What is the best way to have a bunch of user-defined runit scripts that are all meant to start after graphical login
Assistant
Here are a few options for having user-defined runit scripts start after graphical login on Linux:
-
Create a runit service directory under /etc/sv/ and symlink each script into that directory. Then enable the overall service directory with
sudo svscan enable /etc/sv/myscripts. -
Use a single script under /etc/sv/ that runs each user script in sequence. For example, a shell script that runs
/path/to/script1 start; /path/to/script2 start;etc. -
Create a systemd unit file that Wants=graphical.target and ExecStart= lines to run each script. Enable with .
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.