summary refs log tree commit diff
path: root/rc.d/calico
blob: 32c21d892c2d0d7e2d119713739243a8e8228460 (plain) (blame)
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
#!/bin/sh

# PROVIDE: calico
# REQUIRE: LOGIN
# KEYWORD: shutdown

. /etc/rc.subr

name='calico'
rcvar='calico_enable'

load_rc_config "${name}"

: ${calico_enable:='NO'}
: ${calico_path:="/var/run/${name}"}
calico_flags="${calico_flags} ${calico_path}"

command='/usr/sbin/daemon'
procname='/usr/local/bin/calico'
pidfile="/var/run/${name}.pid"
required_dirs=$calico_path

child_flags=$calico_flags
child_user=$calico_user
unset calico_flags calico_user
command_args="\
	-p ${pidfile} -T ${name} ${child_user:+-u ${child_user}} \
	-- ${procname} ${child_flags}"

run_rc_command "$1"
a href='/src/commit/bin/hi.c?id=8995b0b12023247581522fd57d860fde8a7eefa6&follow=1'>Use :target rather than :focus pseudo-classJune McEnroe :target persists after you click on something else. 2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe NULs in the input cause an infinite loop in htmlEscape, not to mention regexes obviously not working, etc. 2019-12-16Post "cgit setup"June McEnroe