Browse Source

Create mediamtx

Simple rc service script to run mediamtx on startup on FreeBSD

No logging
Just a start and stop for now. 

Will update once I set up logging
pull/3125/head
tschettervictor 2 years ago committed by GitHub
parent
commit
106e2bd381
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 22
      rcd/mediamtx

22
rcd/mediamtx

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
#!/bin/sh
# Mediamtx FreeBSD Service Script
# PROVIDE: mediamtx
# REQUIRE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name=mediamtx
user=www
rcvar=mediamtx_enable
: ${mediamtx_enable:="NO"}
command=/usr/sbin/daemon
mediamtx_chdir=/usr/local/www/mediamtx
command_args="-r -u ${user} /usr/local/bin/${name}
load_rc_config $name
run_rc_command "$1"
Loading…
Cancel
Save