Compare commits
4 Commits
funtoo-ope
...
openrc-0.8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e152199860 | ||
|
|
d4bdd32897 | ||
|
|
8947c00204 | ||
|
|
4eb37f67cf |
@@ -1,3 +1,3 @@
|
||||
NAME= openrc
|
||||
VERSION= 0.8.2
|
||||
VERSION= 0.8.3
|
||||
PKG= ${NAME}-${VERSION}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# you shouldn't specify the trailing ".psf.gz", just the font name below.
|
||||
# To use the default console font, comment out the CONSOLEFONT setting below.
|
||||
# This setting is used by the /etc/init.d/consolefont script (NOTE: if you do
|
||||
# not want to use it, run "rc-update del consolefont" as root).
|
||||
# not want to use it, run "rc-update del consolefont boot" as root).
|
||||
consolefont="default8x16"
|
||||
|
||||
# consoletranslation is the charset map file to use. Leave commented to use
|
||||
|
||||
@@ -10,16 +10,25 @@ depend()
|
||||
|
||||
start()
|
||||
{
|
||||
local conf= retval=0
|
||||
local conf= retval=0 err errs
|
||||
|
||||
ebegin "Configuring kernel parameters"
|
||||
eindent
|
||||
|
||||
for conf in /etc/sysctl.d/*.conf /etc/sysctl.conf; do
|
||||
if [ -r "$conf" ]; then
|
||||
vebegin "applying $conf"
|
||||
sysctl -p "$conf" >/dev/null
|
||||
if ! err=$(sysctl -q -p "$conf" 2>&1) ; then
|
||||
errs="${errs} ${err}"
|
||||
sysctl -q -e -p "${conf}"
|
||||
fi
|
||||
veend $? || retval=1
|
||||
fi
|
||||
done
|
||||
|
||||
eoutdent
|
||||
eend $retval "Some errors were encountered"
|
||||
if [ ${retval} -eq 0 ] && [ -n "${errs}" ] ; then
|
||||
ewarn "Unknown keys:${errs}"
|
||||
fi
|
||||
eend $retval "Some errors were encountered: ${errs}"
|
||||
}
|
||||
|
||||
@@ -791,6 +791,9 @@ start_stop_daemon(int argc, char **argv)
|
||||
case 'u': /* --user <username>|<uid> */
|
||||
case 'c': /* --chuid <username>|<uid> */
|
||||
{
|
||||
/* DEPRECATED */
|
||||
ewarn("WARNING: -c/--chuid is deprecated and will be removed in the future, please use -u/--user instead");
|
||||
|
||||
p = optarg;
|
||||
tmp = strsep(&p, ":");
|
||||
changeuser = xstrdup(tmp);
|
||||
@@ -867,6 +870,8 @@ start_stop_daemon(int argc, char **argv)
|
||||
break;
|
||||
|
||||
case 'o': /* --oknodo */
|
||||
/* DEPRECATED */
|
||||
ewarn("WARNING: -o/--oknodo is deprecated and will be removed in the future");
|
||||
oknodo = true;
|
||||
break;
|
||||
|
||||
@@ -887,6 +892,8 @@ start_stop_daemon(int argc, char **argv)
|
||||
break;
|
||||
|
||||
case 'a': /* --startas <name> */
|
||||
/* DEPRECATED */
|
||||
ewarn("WARNING: -a/--startas is deprecated and will be removed in the future, please use -x/--exec or -n/--name instead");
|
||||
startas = optarg;
|
||||
break;
|
||||
case 'w':
|
||||
|
||||
Reference in New Issue
Block a user