Add instruction to point to the correct executable

This commit is contained in:
Jag Talon 2025-03-07 11:13:19 -05:00
parent dc49e7b8fd
commit a3fe2a85fe
No known key found for this signature in database
GPG Key ID: DA861B5EEA906363

View File

@ -15,15 +15,18 @@ rc_cmd $1
# 1. Copy this file to `/etc/rc.d` # 1. Copy this file to `/etc/rc.d`
# $ cp ssh-chat/examples/openbsd_service /etc/rc.d/ssh_chat # $ cp ssh-chat/examples/openbsd_service /etc/rc.d/ssh_chat
# #
# 2. Modify the values in daemon_flags and daemon_user based on your liking. # 2. Point the variable `daemon` to the executable, e.g., /usr/local/bin/ssh-chat
# You can also set the flags using rcctl: # $ cp ~/ssh-chat/ssh-chat /usr/local/bin/ssh-chat
#
# 3. Modify the values in daemon_flags and daemon_user based on your liking.
# Alternatively, you can delete that line and set the flags using rcctl instead:
# $ rcctl set ssh_chat flags --verbose --bind [...] --identity [...] # $ rcctl set ssh_chat flags --verbose --bind [...] --identity [...]
# #
# 3. Create the user that will run this service (see `man useradd` or `man adduser`) # 4. Create the user that will run this service (see `man useradd` or `man adduser`)
# $ useradd -m chat # $ useradd -m chat
# #
# 4. Enable and start the service # 5. Enable and start the service
# $ rcctl enable ssh_chat # $ rcctl enable ssh_chat
# $ rcctl start ssh_chat # $ rcctl start ssh_chat
# #
# 5. Check the logs in `/var/log/daemon` # 6. Check the logs in `/var/log/daemon`