mirror of
https://git.freebsd.org/ports.git
synced 2025-05-17 17:43:11 -04:00
26 lines
539 B
Bash
Executable file
26 lines
539 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# PROVIDE: containerd
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
|
|
# Add the following lines to /etc/rc.conf to enable containerd:
|
|
#
|
|
# containerd_enable="YES"
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="containerd"
|
|
rcvar="containerd_enable"
|
|
|
|
pidfile="/var/run/${name}.pid"
|
|
command="/usr/sbin/daemon"
|
|
command_args="-P ${pidfile} -r -S -t ${name} -T ${name} %%LOCALBASE%%/bin/containerd"
|
|
|
|
load_rc_config $name
|
|
: ${containerd_enable:=no}
|
|
|
|
# containerd needs to execute a runtime (eg. runj)
|
|
PATH="${PATH}:%%PREFIX%%/sbin:%%PREFIX%%/bin"
|
|
|
|
run_rc_command "$1"
|