Created
January 3, 2018 02:52
-
-
Save goose121/531b88f8735191379d59ea47bff90736 to your computer and use it in GitHub Desktop.
An OpenRC service for ssh-chat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Config for /etc/init.d/ssh-chat | |
| # See `/usr/bin/ssh-chat --help` for more details | |
| # The admin's key fingerprint | |
| #admin_fingerprint=SHA256:[INSERT HERE] | |
| # The server's private key | |
| server_ident=[INSERT HERE] | |
| # The port to bind to | |
| # port=22 | |
| # The whitelist file | |
| # whitelist="" | |
| # The MOTD (Message Of The Day) file | |
| # motd="" | |
| # The logfile location | |
| log="/var/log/ssh-chat.log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/sbin/openrc-run | |
| name="$RC_SVCNAME" | |
| description="Chat server over SSH" | |
| command="/usr/local/bin/ssh-chat" | |
| command_args="-i '$server_ident' --bind='$port' --admin='$admin_fingerprint' --whitelist='$whitelist' --motd='$motdfile | |
| ' --log=$logfile" | |
| pidfile="/run/$RC_SVCNAME.pid" | |
| command_background="yes" | |
| command_user="nobody" # If you want to secure your keyfile, you should change this to a | |
| # user specifically for running ssh-chat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment