Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
services:wetty [2024/04/24 07:54] – [Installation] willy | services:wetty [2024/08/07 14:53] (current) – willy | ||
---|---|---|---|
Line 67: | Line 67: | ||
===== Start & Autostart ===== | ===== Start & Autostart ===== | ||
- | To start WeTTY as a service, if you follow my [[gentoo:locald|Custom User Services]], | + | Using OpenRC, drop the following script into /etc/init.d: |
+ | <file - / | ||
+ | # | ||
+ | # Copyright 1999-2021 Gentoo Authors | ||
+ | # Distributed under the terms of the GNU General Public License v2 | ||
+ | |||
+ | description=" | ||
+ | pidfile="/ | ||
+ | command_background=true | ||
+ | command="/ | ||
+ | command_args="" | ||
+ | command_user=" | ||
+ | |||
+ | depend() { | ||
+ | need net | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | And you will also need to create the following script under **/ | ||
<file - wetty_start.sh> | <file - wetty_start.sh> | ||
#!/bin/bash | #!/bin/bash | ||
Line 84: | Line 102: | ||
</ | </ | ||
- | You need to copy the last lines of the **.bashrc** in the script because NVM requires those lines and the _servicer.sh script | + | You need to copy the last lines of the **.bashrc** in the script because NVM requires those lines and OpenRC |
Note: if you want to leave the user out you can omit the // | Note: if you want to leave the user out you can omit the // | ||
Line 90: | Line 108: | ||
And make it executable, then create the links: | And make it executable, then create the links: | ||
<code bash> | <code bash> | ||
- | cd /etc/local.d | + | chmod +x /etc/init.d/wetty |
- | ln -s _servicer.sh 99-wetty--script.start | + | chmod +x / |
- | ln -s _servicer.sh 99-wetty--script.stop | + | rc-update add wetty default |
</ | </ | ||
And you are all set. | And you are all set. | ||