Unifix knowledge database - The original one

Dashboard - News - Search - List - About - Admin


Creating chrooting init scripts in gentoo

Author:redeman - Sat Mar 26 08:00:35 2005

just create something similar to this:

start() {
       ebegin "Starting ${CHROOT:+chrooted }dhcpd"
        start-stop-daemon --start --quiet --exec /usr/sbin/dhcpd \
                -- -pf /var/run/dhcp/dhcpd.pid \
                -user dhcp -group dhcp ${DHCPD_OPTS} \
                ${CHROOT:+-chroot ${CHROOT}} ${IFACE}
        eend $?
}

stop() {
        ebegin "Stopping dhcpd"
        start-stop-daemon --stop --quiet --pidfile \
                "${CHROOT}/var/run/dhcp/dhcpd.pid"
        eend $?
}
Copyright(c) Unifix.org 2002-2011


Dashboard - News - Search - List - About - Admin
 
Powered by Mikjaer Consulting Solutions - Hosted by Specialhosting.dk