7bd456ed7b
This adds the -systemd-nspawn keyword to service scripts which are not intended to run in systemd-nspawn containers. This fixes #52. X-Gentoo-Bug: 548058 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=548058
20 lines
381 B
Plaintext
20 lines
381 B
Plaintext
#!@SBINDIR@/openrc-run
|
|
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
|
# Released under the 2-clause BSD license.
|
|
|
|
depend()
|
|
{
|
|
before bootmisc logger
|
|
keyword -prefix -systemd-nspawn -vserver
|
|
}
|
|
|
|
start()
|
|
{
|
|
local quiet
|
|
yesno $rc_verbose || quiet=-q
|
|
|
|
ebegin "Configuring kernel parameters"
|
|
sysctl ${quiet} --system
|
|
eend $? "Unable to configure some kernel parameters"
|
|
}
|