ports/net/teddycloud/files/teddycloudd.in
Michael Pape 2faca847a9 net/teddycloud: alternative to the public toniebox server
Small fixes applied to build successfully.

PR:		276541
2024-11-02 08:52:58 +02:00

20 lines
366 B
Bash

#!/bin/sh
# PROVIDE: teddycloudd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name=teddycloudd
rcvar=teddycloudd_enable
pidfile="/var/run/${name}.pid"
procname="%%PREFIX%%/bin/teddycloud"
command="/usr/sbin/daemon"
command_args="-p ${pidfile} -t ${name} -o /var/log/teddycloud.log ${procname}"
load_rc_config $name
run_rc_command "$1"