blob: 4f5ea621a43cef0fc81febc97cc6821bd7b42ffc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
#
# Author: Mark Felder <feld@FreeBSd.org>
#
# $FreeBSD$
#
# PROVIDE: miniflux
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable miniflux:
# miniflux_enable="YES"
# miniflux_flags="<set as needed>"
. /etc/rc.subr
name="miniflux"
rcvar=miniflux_enable
load_rc_config $name
: ${miniflux_enable="NO"}
: ${miniflux_config="%%PREFIX%%/etc/miniflux.env"}
pidfile="/var/run/miniflux.pid"
procname="%%PREFIX%%/bin/miniflux"
command="/usr/sbin/daemon"
command_args="-f -T miniflux -p ${pidfile} -u miniflux %%PREFIX%%/bin/miniflux -c ${miniflux_config}"
run_rc_command "$1"
|