Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2012 23:57:13 -0600
From:      "FreeBSD Proponent" <fartherreaches@aol.com>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/173927: ports/pefs no start/stop script provided with this port
Message-ID:  <1353909433.220842.10401@freebsd1.localnet>
Resent-Message-ID: <201211260610.qAQ6A0e3097519@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         173927
>Category:       ports
>Synopsis:       ports/pefs no start/stop script provided with this port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 26 06:10:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     FreeBSD Proponent
>Release:        FreeBSD 8.3-RELEASE-p4 amd64
>Organization:
>Environment:


System: FreeBSD 8.3-RELEASE-p4 #3: Thu Oct 25 04:07:53 CDT 2012

pefs-kmod-2012.09.30



>Description:


No /usr/local/etc/rc.d start/stop script provided with this port


>How-To-Repeat:





>Fix:


--- usr_local_etc_rc.d_pefs begins here ---
#!/bin/sh

# PROVIDE: pefs

#
# pefs_enable (bool):  Set to "NO" by default.
#                      Set it to "YES" to enable
# pefs_flags (string): Set to base filesystem/directory to encrypt

. /etc/rc.subr

name="pefs"
rcvar=pefs_enable

start_cmd="pefs_start"
stop_cmd="pefs_stop"
command="/usr/local/sbin/pefs"

load_rc_config ${name}

pefs_start()
{
  $command mount ${pefs_flags}.enc ${pefs_flags}
  $command addkey -c ${pefs_flags}
}

pefs_stop()
{
  $command unmount -f -v ${pefs_flags}
}

run_rc_command "$1"
--- usr_local_etc_rc.d_pefs ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1353909433.220842.10401>