[Bug 263236] sysutils/containerd: Missing rc.d script

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 12 Apr 2022 08:06:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263236

            Bug ID: 263236
           Summary: sysutils/containerd: Missing rc.d script
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: decke@FreeBSD.org
          Reporter: kwiat3k@panic.pl
             Flags: maintainer-feedback?(decke@FreeBSD.org)
          Assignee: decke@FreeBSD.org

containers port is missing rc.d script. This is a script I prepared and is
working for me:
```
# cat /usr/local/etc/rc.d/containerd
#! /bin/sh

# PROVIDE: containerd
# REQUIRE: DAEMON NETWORKING
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable containerd:
#
#containerd_enable="YES"

. /etc/rc.subr

name="containerd"
rcvar="containerd_enable"

load_rc_config $name

: ${containerd_enable:=NO}

pidfile="/var/run/${name}.pid"

command="/usr/sbin/daemon"
command_args="-r -S -t ${name} -T ${name} -P ${pidfile} /usr/local/bin/${name}"

run_rc_command "$1"
```

-- 
You are receiving this mail because:
You are the assignee for the bug.