9e2b37b552
I used the web UI of codeberg.org to write this text file as I feel very comfortable using it, but I didn't realise that opening it in a text file would make a really long line so I split it.
15 lines
No EOL
1.2 KiB
Text
15 lines
No EOL
1.2 KiB
Text
### INSTRUCTIONS ###
|
|
First, you need to install runit and snooze(it is used as an alternative to cron and systemd timers). On Debian descendants you do:
|
|
$ sudo apt install runit snooze
|
|
|
|
Then, you need to download this repo as it contains everything that I used to get runit up and running(if you haven't already of course)
|
|
$ git clone https://codeberg.org/AwesomeAdam54321/LL_Runit_Scripts
|
|
|
|
There should be a folder in your current directory called "LL_Runit_Scripts". Do "cd LL_Runit_Scripts" to cd into it.
|
|
|
|
Runit services should be long running services, but oneshot services exist, so the pause executable is used to implement oneshot functionality in runit. You need to compile pause.c because
|
|
it isn't worth making a deb package as it's source code is so short. The produced executable should be in your $PATH, preferably in /usr/local/bin as it's compiled. You can use any C compiler
|
|
to compile it but I used GCC(I needed root privileges to add files to file paths in my $PATH but it might(?) be different for you):
|
|
$ sudo gcc pause.c -o /usr/local/bin/pause
|
|
|
|
To test that it succeeded, type pause and hit Enter. It should "pause" the terminal you were running. To stop, do Ctrl-C as that will send a kill signal to the process. |