Rename runscript to openrc-run

This was requested by Debian, because the minicom software, which is
available on Debian and other distros, has a binary named runscript. We
are keeping a backward compatibility symlink for now, but this allows
Debian or any other distro to safely remove the symlink.

X-Gentoo-Bug: 494220
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=494220
This commit is contained in:
William Hubbs 2013-12-21 14:51:11 -06:00
parent c096ad63ca
commit 3470eda3f5
79 changed files with 103 additions and 85 deletions

11
README
View File

@ -61,10 +61,13 @@ As of OpenRC-0.12, the net.* scripts, originally from Gentoo Linux, have
been removed. If you need these scripts, look for a package called been removed. If you need these scripts, look for a package called
netifrc, which is maintained by them. netifrc, which is maintained by them.
As of OpenRC-0.13, the /sbin/rc binary has been renamed /sbin/openrc. As of OpenRC-0.13, two binaries have been renamed due to naming
There is a /sbin/rc symbolic link in place currently in case you are conflicts with other software. The /sbin/rc binary was renamed to
still using the old name. However, it is strongly advised that you /sbin/openrc, and /sbin/runscript was renamed to /sbin/openrc-run.
migrate your system to the new name.
Backward compatible symbolic links are currently in place so your
system will keep working if you are using the old names; however, it is
strongly advised that you migrate to the new names.
Reporting Bugs Reporting Bugs
-------------- --------------

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2009 Roy Marples <roy@marples.name> # Copyright (c) 2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2009 Roy Marples <roy@marples.name> # Copyright (c) 2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2008 Roy Marples <roy@marples.name> # Copyright (c) 2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright 1992-2012 FreeBSD Project # Copyright 1992-2012 FreeBSD Project
# Released under the 2-clause BSD license # Released under the 2-clause BSD license

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2013 William Hubbs <w.d.hubbs@gmail.com> # Copyright (c) 2013 William Hubbs <w.d.hubbs@gmail.com>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2009 Roy Marples <roy@marples.name> # Copyright (c) 2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2009 Roy Marples <roy@marples.name> # Copyright (c) 2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2009 Roy Marples <roy@marples.name> # Copyright (c) 2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.
@ -17,7 +17,7 @@ start()
{ {
ebegin "Setting the local clock based on last shutdown time" ebegin "Setting the local clock based on last shutdown time"
if ! swclock 2> /dev/null; then if ! swclock 2> /dev/null; then
swclock --warn @SBINDIR@/runscript swclock --warn @SBINDIR@/openrc-run
fi fi
eend $? eend $?
} }

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name> # Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2008-2009 Roy Marples <roy@marples.name> # Copyright (c) 2008-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright 1999-2012 Gentoo Foundation # Copyright 1999-2012 Gentoo Foundation
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright 1999-2012 Gentoo Foundation # Copyright 1999-2012 Gentoo Foundation
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2008 Roy Marples <roy@marples.name> # Copyright (c) 2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name> # Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,4 +1,4 @@
#!@SBINDIR@/runscript #!@SBINDIR@/openrc-run
# Copyright (c) 2008-2009 Roy Marples <roy@marples.name> # Copyright (c) 2008-2009 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license. # Released under the 2-clause BSD license.

View File

@ -1,7 +1,7 @@
MAN3= einfo.3 \ MAN3= einfo.3 \
rc_config.3 rc_deptree.3 rc_find_pids.3 rc_plugin_hook.3 \ rc_config.3 rc_deptree.3 rc_find_pids.3 rc_plugin_hook.3 \
rc_runlevel.3 rc_service.3 rc_stringlist.3 rc_runlevel.3 rc_service.3 rc_stringlist.3
MAN8= rc-service.8 rc-status.8 rc-update.8 openrc.8 runscript.8 \ MAN8= rc-service.8 rc-status.8 rc-update.8 openrc.8 openrc-run.8 \
service.8 start-stop-daemon.8 service.8 start-stop-daemon.8
# Handy macro to create symlinks # Handy macro to create symlinks

View File

@ -22,10 +22,10 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.Dd December 31, 2011 .Dd December 31, 2011
.Dt RUNSCRIPT 8 SMM .Dt openrc-run 8 SMM
.Os OpenRC .Os OpenRC
.Sh NAME .Sh NAME
.Nm runscript .Nm openrc-run
.Nd a means of hooking shell commands into a service .Nd a means of hooking shell commands into a service
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
@ -47,7 +47,7 @@ and finally the script itself. At this point
then runs the command given. then runs the command given.
.Pp .Pp
Commands are defined as shell functions within the script. Here is a list of Commands are defined as shell functions within the script. Here is a list of
some functions that all runscripts have by default: some functions that all scripts have by default:
.Bl -tag -width "RC_DEFAULTLEVEL" .Bl -tag -width "RC_DEFAULTLEVEL"
.It Ar describe .It Ar describe
Describes what the service does and each command the service defines. Describes what the service does and each command the service defines.
@ -411,7 +411,7 @@ rc_keyword="!-prefix"
.Pp .Pp
An example service script for foo. An example service script for foo.
.Bd -literal -offset indent .Bd -literal -offset indent
#!/sbin/runscript #!/sbin/openrc-run
command=/usr/bin/foo command=/usr/bin/foo
command_args="${foo_args} --bar" command_args="${foo_args} --bar"
pidfile=/var/run/foo.pid pidfile=/var/run/foo.pid

View File

@ -53,7 +53,8 @@ All services must reside in the
or or
.Pa /usr/local/etc/init.d .Pa /usr/local/etc/init.d
directories. directories.
They must also conform to the OpenRC runscript standard. They must also be standard OpenRC scripts, meaning they must use
openrc-run.
.Pp .Pp
.Bl -tag -width "Fl a , -delete service" .Bl -tag -width "Fl a , -delete service"
.It Ar add Ar service .It Ar add Ar service
@ -87,6 +88,7 @@ option is given then we either add or remove the runlevel from the runlevel.
This allows inheritance of runlevels. This allows inheritance of runlevels.
.Sh SEE ALSO .Sh SEE ALSO
.Xr openrc 8 , .Xr openrc 8 ,
.Xr openrc-run 8 ,
.Xr rc-status 8 .Xr rc-status 8
.Sh AUTHORS .Sh AUTHORS
.An Roy Marples <roy@marples.name> .An Roy Marples <roy@marples.name>

View File

@ -107,6 +107,6 @@ when done.
.Xr malloc 3 , .Xr malloc 3 ,
.Xr free 3 , .Xr free 3 ,
.Xr rc_stringlist_free 3 , .Xr rc_stringlist_free 3 ,
.Xr runscript 8 .Xr openrc-run 8
.Sh AUTHORS .Sh AUTHORS
.An Roy Marples <roy@marples.name> .An Roy Marples <roy@marples.name>

View File

@ -45,6 +45,6 @@ Plugins can affect the parent environment by writing NULL separated strings to
.Va rc_environ_fd . .Va rc_environ_fd .
.Sh SEE ALSO .Sh SEE ALSO
.Xr openrc 8 , .Xr openrc 8 ,
.Xr runscript 8 .Xr openrc-run 8
.Sh AUTHORS .Sh AUTHORS
.An Roy Marples <roy@marples.name> .An Roy Marples <roy@marples.name>

View File

@ -141,7 +141,7 @@ is lost.
returns a list of extra commands the returns a list of extra commands the
.Fa service .Fa service
supports beyond the default ones. See supports beyond the default ones. See
.Nm runscript .Nm openrc-run
for default commands. for default commands.
.Pp .Pp
.Fn rc_service_plugable .Fn rc_service_plugable

View File

@ -51,10 +51,12 @@ do
for RC_SERVICE in *; do for RC_SERVICE in *; do
[ -x "$RC_SERVICE" -a -f "$RC_SERVICE" ] || continue [ -x "$RC_SERVICE" -a -f "$RC_SERVICE" ] || continue
# Only generate dependencies for runscripts # Only generate dependencies for OpenRC scripts
read one two three <"$RC_SERVICE" read one two three <"$RC_SERVICE"
[ "$one" = "#!@SBINDIR@/runscript" ] || \ [ "$one" = "#!@SBINDIR@/runscript" ] || \
[ "$one" = "#!@SBINDIR@/openrc-run" ] || \
[ "$one" = "#!" -a "$two" = "@SBINDIR@/runscript" ] || \ [ "$one" = "#!" -a "$two" = "@SBINDIR@/runscript" ] || \
[ "$one" = "#!" -a "$two" = "@SBINDIR@/openrc-run" ] || \
continue continue
unset one two three unset one two three

1
src/rc/.gitignore vendored
View File

@ -58,3 +58,4 @@ mark_service_failed
rc-abort rc-abort
rc rc
openrc openrc
openrc-run

View File

@ -11,7 +11,8 @@ SBINDIR= ${PREFIX}/sbin
LINKDIR= ${LIBEXECDIR} LINKDIR= ${LIBEXECDIR}
BINLINKS= rc-status BINLINKS= rc-status
SBINLINKS= rc rc-service rc-update runscript service start-stop-daemon SBINLINKS= rc rc-service rc-update openrc-run runscript service \
start-stop-daemon
RC_BINLINKS= einfon einfo ewarnn ewarn eerrorn eerror ebegin eend ewend \ RC_BINLINKS= einfon einfo ewarnn ewarn eerrorn eerror ebegin eend ewend \
eindent eoutdent esyslog eval_ecolors ewaitfile \ eindent eoutdent esyslog eval_ecolors ewaitfile \
veinfo vewarn vebegin veend vewend veindent veoutdent \ veinfo vewarn vebegin veend vewend veindent veoutdent \

View File

@ -28,6 +28,7 @@
int checkpath(int, char **); int checkpath(int, char **);
int fstabinfo(int, char **); int fstabinfo(int, char **);
int mountinfo(int, char **); int mountinfo(int, char **);
int openrc_run(int, char **);
int rc_depend(int, char **); int rc_depend(int, char **);
int rc_service(int, char **); int rc_service(int, char **);
int rc_status(int, char **); int rc_status(int, char **);

View File

@ -503,6 +503,7 @@ static const struct {
#define A(a) { #a, a } #define A(a) { #a, a }
A(fstabinfo), A(fstabinfo),
A(mountinfo), A(mountinfo),
{ "openrc-run", openrc_run, },
{ "rc-depend", rc_depend, }, { "rc-depend", rc_depend, },
{ "rc-service", rc_service, }, { "rc-service", rc_service, },
{ "rc-status", rc_status, }, { "rc-status", rc_status, },

View File

@ -1116,7 +1116,7 @@ static const char *const longopts_help[] = {
#include "_usage.c" #include "_usage.c"
int int
runscript(int argc, char **argv) openrc_run(int argc, char **argv)
{ {
bool doneone = false; bool doneone = false;
int retval, opt, depoptions = RC_DEP_TRACE; int retval, opt, depoptions = RC_DEP_TRACE;
@ -1130,12 +1130,12 @@ runscript(int argc, char **argv)
/* Show help if insufficient args */ /* Show help if insufficient args */
if (argc < 2 || !exists(argv[1])) { if (argc < 2 || !exists(argv[1])) {
fprintf(stderr, "runscript should not be run directly\n"); fprintf(stderr, "openrc-run should not be run directly\n");
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
if (stat(argv[1], &stbuf) != 0) { if (stat(argv[1], &stbuf) != 0) {
fprintf(stderr, "runscript `%s': %s\n", fprintf(stderr, "openrc-run `%s': %s\n",
argv[1], strerror(errno)); argv[1], strerror(errno));
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
@ -1420,3 +1420,10 @@ runscript(int argc, char **argv)
return retval; return retval;
} }
int
runscript(int argc, char **argv)
{
ewarn("runscript is deprecated; please use openrc-run instead.");
return (openrc_run(argc, argv));
}