Hello, Misc;
I'm attempting to write an rc script to start a tmux session:
#!/bin/sh
daemon="/usr/bin/tmux"
daemon_flags=" new -d -s MAINTMUX -n SHELL"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_stop() {
/usr/bin/tmux kill-session -t MAINTMUX
}
rc_cmd $1
I am able to start it, however upon running the stop command I receive no
output, and the tmux session I've created with the start command is still
active.
The man pages for rc.subr(8) state that rc_* functions are to be overwritten
after sourcing rc.subr, which is what I'm doing.
Am I missing something? Is there anything else I need to set prior to
starting/stopping the rc script? Thank you in advance.
Ben Raskin