42 lines
750 B
Plaintext
42 lines
750 B
Plaintext
|
# Copyright (c) 2018-2020, diyIT.org
|
||
|
# All rights reserved.
|
||
|
#
|
||
|
# BSD 2-Clause License ("Simplified BSD License" or "FreeBSD License")
|
||
|
# https://diyit.org/license/
|
||
|
#
|
||
|
#
|
||
|
|
||
|
#!/bin/sh
|
||
|
#
|
||
|
# PROVIDE: plexconnect
|
||
|
# REQUIRE: DAEMON
|
||
|
# KEYWORD: shutdown
|
||
|
|
||
|
. /etc/rc.subr
|
||
|
|
||
|
name=plexconnect
|
||
|
rcvar=plexconnect_enable
|
||
|
|
||
|
start_cmd="${name}_start"
|
||
|
stop_cmd="${name}_stop"
|
||
|
status_cmd="${name}_status"
|
||
|
extra_commands="status"
|
||
|
PATH=/usr/local/bin:${PATH}
|
||
|
|
||
|
plexconnect_start()
|
||
|
{
|
||
|
/usr/local/bin/bash /data/PlexConnect/PlexConnect_daemon.bash start
|
||
|
}
|
||
|
plexconnect_stop()
|
||
|
{
|
||
|
/usr/local/bin/bash /data/PlexConnect/PlexConnect_daemon.bash stop
|
||
|
}
|
||
|
|
||
|
plexconnect_status()
|
||
|
{
|
||
|
/usr/local/bin/bash /data/PlexConnect/PlexConnect_daemon.bash status
|
||
|
}
|
||
|
|
||
|
load_rc_config $name
|
||
|
run_rc_command "$1"
|