summaryrefslogtreecommitdiff
path: root/dev-util/schroot/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:57:42 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:57:42 +0100
commit1798c4aeca70ac8d0a243684d6a798fbc65735f8 (patch)
treee48e19cb6fa03de18e1c63e1a93371b7ebc4eb56 /dev-util/schroot/files
parentd87262dd706fec50cd150aab3e93883b6337466d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/schroot/files')
-rw-r--r--dev-util/schroot/files/schroot.confd9
-rw-r--r--dev-util/schroot/files/schroot.initd41
2 files changed, 0 insertions, 50 deletions
diff --git a/dev-util/schroot/files/schroot.confd b/dev-util/schroot/files/schroot.confd
deleted file mode 100644
index b62263175721..000000000000
--- a/dev-util/schroot/files/schroot.confd
+++ /dev/null
@@ -1,9 +0,0 @@
-# This is a configuration file for /etc/init.d/schroot; it allows you
-# to perform common modifications to the behavior of schroot
-# initialization without editing the init script.
-
-# What do we want to do with "orphan" sessions when starting or
-# restarting? Recover them (leave empty or set to "recover") or just
-# end them (set to "end")?
-SESSIONS_RECOVER="recover"
-
diff --git a/dev-util/schroot/files/schroot.initd b/dev-util/schroot/files/schroot.initd
deleted file mode 100644
index be58c3a0f2d0..000000000000
--- a/dev-util/schroot/files/schroot.initd
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/sbin/openrc-run
-
-depend() {
- need localmount
- after net netmount
-}
-
-start() {
- local msg param
- case "${SESSIONS_RECOVER}" in
- end)
- msg="Ending"
- param="--end-session"
- ;;
- recover|"")
- msg="Recovering"
- param="--recover-session"
- ;;
- *)
- ewarn "Invalid value \"$SESSIONS_RECOVER\" for \$SESSIONS_RECOVER, using \"recover\""
- msg="Recovering"
- param="--recover-session"
- ;;
- esac
-
- einfo "$msg schroot sessions"
- eindent
- local chroot
- local chroots="$(schroot --all-sessions --list --quiet)"
- if [ -n "$chroots" ]; then
- for chroot in $chroots; do
- ebegin "$chroot"
- schroot --chroot=$chroot $param
- eend $?
- done
- else
- einfo "(none)"
- fi
- eoutdent
- einfo "...done"
-}