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:
parent
c096ad63ca
commit
3470eda3f5
11
README
11
README
@ -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
|
||||
netifrc, which is maintained by them.
|
||||
|
||||
As of OpenRC-0.13, the /sbin/rc binary has been renamed /sbin/openrc.
|
||||
There is a /sbin/rc symbolic link in place currently in case you are
|
||||
still using the old name. However, it is strongly advised that you
|
||||
migrate your system to the new name.
|
||||
As of OpenRC-0.13, two binaries have been renamed due to naming
|
||||
conflicts with other software. The /sbin/rc binary was renamed to
|
||||
/sbin/openrc, and /sbin/runscript was renamed to /sbin/openrc-run.
|
||||
|
||||
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
|
||||
--------------
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright 1992-2012 FreeBSD Project
|
||||
# Released under the 2-clause BSD license
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2013 William Hubbs <w.d.hubbs@gmail.com>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
@ -17,7 +17,7 @@ start()
|
||||
{
|
||||
ebegin "Setting the local clock based on last shutdown time"
|
||||
if ! swclock 2> /dev/null; then
|
||||
swclock --warn @SBINDIR@/runscript
|
||||
swclock --warn @SBINDIR@/openrc-run
|
||||
fi
|
||||
eend $?
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2008-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@SBINDIR@/runscript
|
||||
#!@SBINDIR@/openrc-run
|
||||
# Copyright (c) 2008-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
MAN3= einfo.3 \
|
||||
rc_config.3 rc_deptree.3 rc_find_pids.3 rc_plugin_hook.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
|
||||
|
||||
# Handy macro to create symlinks
|
||||
|
@ -22,10 +22,10 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd December 31, 2011
|
||||
.Dt RUNSCRIPT 8 SMM
|
||||
.Dt openrc-run 8 SMM
|
||||
.Os OpenRC
|
||||
.Sh NAME
|
||||
.Nm runscript
|
||||
.Nm openrc-run
|
||||
.Nd a means of hooking shell commands into a service
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
@ -47,7 +47,7 @@ and finally the script itself. At this point
|
||||
then runs the command given.
|
||||
.Pp
|
||||
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"
|
||||
.It Ar describe
|
||||
Describes what the service does and each command the service defines.
|
||||
@ -411,7 +411,7 @@ rc_keyword="!-prefix"
|
||||
.Pp
|
||||
An example service script for foo.
|
||||
.Bd -literal -offset indent
|
||||
#!/sbin/runscript
|
||||
#!/sbin/openrc-run
|
||||
command=/usr/bin/foo
|
||||
command_args="${foo_args} --bar"
|
||||
pidfile=/var/run/foo.pid
|
@ -53,7 +53,8 @@ All services must reside in the
|
||||
or
|
||||
.Pa /usr/local/etc/init.d
|
||||
directories.
|
||||
They must also conform to the OpenRC runscript standard.
|
||||
They must also be standard OpenRC scripts, meaning they must use
|
||||
openrc-run.
|
||||
.Pp
|
||||
.Bl -tag -width "Fl a , -delete 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.
|
||||
.Sh SEE ALSO
|
||||
.Xr openrc 8 ,
|
||||
.Xr openrc-run 8 ,
|
||||
.Xr rc-status 8
|
||||
.Sh AUTHORS
|
||||
.An Roy Marples <roy@marples.name>
|
||||
|
@ -107,6 +107,6 @@ when done.
|
||||
.Xr malloc 3 ,
|
||||
.Xr free 3 ,
|
||||
.Xr rc_stringlist_free 3 ,
|
||||
.Xr runscript 8
|
||||
.Xr openrc-run 8
|
||||
.Sh AUTHORS
|
||||
.An Roy Marples <roy@marples.name>
|
||||
|
@ -45,6 +45,6 @@ Plugins can affect the parent environment by writing NULL separated strings to
|
||||
.Va rc_environ_fd .
|
||||
.Sh SEE ALSO
|
||||
.Xr openrc 8 ,
|
||||
.Xr runscript 8
|
||||
.Xr openrc-run 8
|
||||
.Sh AUTHORS
|
||||
.An Roy Marples <roy@marples.name>
|
||||
|
@ -141,7 +141,7 @@ is lost.
|
||||
returns a list of extra commands the
|
||||
.Fa service
|
||||
supports beyond the default ones. See
|
||||
.Nm runscript
|
||||
.Nm openrc-run
|
||||
for default commands.
|
||||
.Pp
|
||||
.Fn rc_service_plugable
|
||||
|
@ -51,10 +51,12 @@ do
|
||||
for RC_SERVICE in *; do
|
||||
[ -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"
|
||||
[ "$one" = "#!@SBINDIR@/runscript" ] || \
|
||||
[ "$one" = "#!@SBINDIR@/openrc-run" ] || \
|
||||
[ "$one" = "#!" -a "$two" = "@SBINDIR@/runscript" ] || \
|
||||
[ "$one" = "#!" -a "$two" = "@SBINDIR@/openrc-run" ] || \
|
||||
continue
|
||||
unset one two three
|
||||
|
||||
|
1
src/rc/.gitignore
vendored
1
src/rc/.gitignore
vendored
@ -58,3 +58,4 @@ mark_service_failed
|
||||
rc-abort
|
||||
rc
|
||||
openrc
|
||||
openrc-run
|
||||
|
@ -11,7 +11,8 @@ SBINDIR= ${PREFIX}/sbin
|
||||
LINKDIR= ${LIBEXECDIR}
|
||||
|
||||
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 \
|
||||
eindent eoutdent esyslog eval_ecolors ewaitfile \
|
||||
veinfo vewarn vebegin veend vewend veindent veoutdent \
|
||||
|
@ -28,6 +28,7 @@
|
||||
int checkpath(int, char **);
|
||||
int fstabinfo(int, char **);
|
||||
int mountinfo(int, char **);
|
||||
int openrc_run(int, char **);
|
||||
int rc_depend(int, char **);
|
||||
int rc_service(int, char **);
|
||||
int rc_status(int, char **);
|
||||
|
@ -503,6 +503,7 @@ static const struct {
|
||||
#define A(a) { #a, a }
|
||||
A(fstabinfo),
|
||||
A(mountinfo),
|
||||
{ "openrc-run", openrc_run, },
|
||||
{ "rc-depend", rc_depend, },
|
||||
{ "rc-service", rc_service, },
|
||||
{ "rc-status", rc_status, },
|
||||
|
@ -1116,7 +1116,7 @@ static const char *const longopts_help[] = {
|
||||
#include "_usage.c"
|
||||
|
||||
int
|
||||
runscript(int argc, char **argv)
|
||||
openrc_run(int argc, char **argv)
|
||||
{
|
||||
bool doneone = false;
|
||||
int retval, opt, depoptions = RC_DEP_TRACE;
|
||||
@ -1130,12 +1130,12 @@ runscript(int argc, char **argv)
|
||||
|
||||
/* Show help if insufficient args */
|
||||
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);
|
||||
}
|
||||
|
||||
if (stat(argv[1], &stbuf) != 0) {
|
||||
fprintf(stderr, "runscript `%s': %s\n",
|
||||
fprintf(stderr, "openrc-run `%s': %s\n",
|
||||
argv[1], strerror(errno));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
@ -1420,3 +1420,10 @@ runscript(int argc, char **argv)
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
int
|
||||
runscript(int argc, char **argv)
|
||||
{
|
||||
ewarn("runscript is deprecated; please use openrc-run instead.");
|
||||
return (openrc_run(argc, argv));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user