Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: man/, init.d/, /, sh/, src/rc/, init.d.misc/
Date: Mon, 30 Dec 2013 05:27:26
Message-Id: 1388379451.3470eda3f5cea437a6de132b1ead3f27effd3902.williamh@OpenRC
1 commit: 3470eda3f5cea437a6de132b1ead3f27effd3902
2 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
3 AuthorDate: Sat Dec 21 20:51:11 2013 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 30 04:57:31 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=3470eda3
7
8 Rename runscript to openrc-run
9
10 This was requested by Debian, because the minicom software, which is
11 available on Debian and other distros, has a binary named runscript. We
12 are keeping a backward compatibility symlink for now, but this allows
13 Debian or any other distro to safely remove the symlink.
14
15 X-Gentoo-Bug: 494220
16 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=494220
17
18 ---
19 README | 11 +++++++----
20 init.d.misc/avahi-dnsconfd.in | 2 +-
21 init.d.misc/avahid.in | 2 +-
22 init.d.misc/dbus.in | 2 +-
23 init.d.misc/dhcpcd.in | 2 +-
24 init.d.misc/dnsmasq.in | 2 +-
25 init.d.misc/hald.in | 2 +-
26 init.d.misc/named.in | 2 +-
27 init.d.misc/ntpd.in | 2 +-
28 init.d.misc/openvpn.in | 2 +-
29 init.d.misc/polkitd.in | 2 +-
30 init.d.misc/sshd.in | 2 +-
31 init.d.misc/wpa_supplicant.in | 2 +-
32 init.d/adjkerntz.in | 2 +-
33 init.d/bootmisc.in | 2 +-
34 init.d/consolefont.in | 2 +-
35 init.d/devd.in | 2 +-
36 init.d/devdb.in | 2 +-
37 init.d/devfs.in | 2 +-
38 init.d/dmesg.in | 2 +-
39 init.d/dumpon.in | 2 +-
40 init.d/encswap.in | 2 +-
41 init.d/fsck.in | 2 +-
42 init.d/hostid.in | 2 +-
43 init.d/hostname.in | 2 +-
44 init.d/hwclock.in | 2 +-
45 init.d/ipfw.in | 2 +-
46 init.d/keymaps.in | 2 +-
47 init.d/killprocs.in | 2 +-
48 init.d/local.in | 2 +-
49 init.d/localmount.in | 2 +-
50 init.d/loopback.in | 2 +-
51 init.d/mixer.in | 2 +-
52 init.d/modules.in | 2 +-
53 init.d/mount-ro.in | 2 +-
54 init.d/moused.in | 2 +-
55 init.d/mtab.in | 2 +-
56 init.d/netmount.in | 2 +-
57 init.d/network.in | 2 +-
58 init.d/newsyslog.in | 2 +-
59 init.d/nscd.in | 2 +-
60 init.d/numlock.in | 2 +-
61 init.d/pf.in | 2 +-
62 init.d/powerd.in | 2 +-
63 init.d/procfs.in | 2 +-
64 init.d/rarpd.in | 2 +-
65 init.d/rc-enabled.in | 2 +-
66 init.d/root.in | 2 +-
67 init.d/rpcbind.in | 2 +-
68 init.d/savecache.in | 2 +-
69 init.d/savecore.in | 2 +-
70 init.d/staticroute.in | 2 +-
71 init.d/swap-blk.in | 2 +-
72 init.d/swap.in | 2 +-
73 init.d/swapfiles.in | 2 +-
74 init.d/swclock.in | 4 ++--
75 init.d/syscons.in | 2 +-
76 init.d/sysctl.BSD.in | 2 +-
77 init.d/sysctl.Linux.in | 2 +-
78 init.d/sysfs.in | 2 +-
79 init.d/syslogd.in | 2 +-
80 init.d/termencoding.in | 2 +-
81 init.d/tmpfiles.dev.in | 2 +-
82 init.d/tmpfiles.setup.in | 2 +-
83 init.d/ttys.in | 2 +-
84 init.d/urandom.in | 2 +-
85 init.d/wscons.in | 2 +-
86 man/Makefile | 2 +-
87 man/{runscript.8 => openrc-run.8} | 8 ++++----
88 man/rc-update.8 | 4 +++-
89 man/rc_deptree.3 | 2 +-
90 man/rc_plugin_hook.3 | 2 +-
91 man/rc_service.3 | 2 +-
92 sh/gendepends.sh.in | 4 +++-
93 src/rc/.gitignore | 1 +
94 src/rc/Makefile | 3 ++-
95 src/rc/builtins.h | 1 +
96 src/rc/rc-applets.c | 1 +
97 src/rc/runscript.c | 13 ++++++++++---
98 79 files changed, 103 insertions(+), 85 deletions(-)
99
100 diff --git a/README b/README
101 index 53408c3..798ef4e 100644
102 --- a/README
103 +++ b/README
104 @@ -61,10 +61,13 @@ As of OpenRC-0.12, the net.* scripts, originally from Gentoo Linux, have
105 been removed. If you need these scripts, look for a package called
106 netifrc, which is maintained by them.
107
108 -As of OpenRC-0.13, the /sbin/rc binary has been renamed /sbin/openrc.
109 -There is a /sbin/rc symbolic link in place currently in case you are
110 -still using the old name. However, it is strongly advised that you
111 -migrate your system to the new name.
112 +As of OpenRC-0.13, two binaries have been renamed due to naming
113 +conflicts with other software. The /sbin/rc binary was renamed to
114 +/sbin/openrc, and /sbin/runscript was renamed to /sbin/openrc-run.
115 +
116 +Backward compatible symbolic links are currently in place so your
117 +system will keep working if you are using the old names; however, it is
118 +strongly advised that you migrate to the new names.
119
120 Reporting Bugs
121 --------------
122
123 diff --git a/init.d.misc/avahi-dnsconfd.in b/init.d.misc/avahi-dnsconfd.in
124 index abe2d22..5e022a1 100644
125 --- a/init.d.misc/avahi-dnsconfd.in
126 +++ b/init.d.misc/avahi-dnsconfd.in
127 @@ -1,4 +1,4 @@
128 -#!@SBINDIR@/runscript
129 +#!@SBINDIR@/openrc-run
130 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
131 # Released under the 2-clause BSD license.
132
133
134 diff --git a/init.d.misc/avahid.in b/init.d.misc/avahid.in
135 index ea2241b..bc8ce15 100644
136 --- a/init.d.misc/avahid.in
137 +++ b/init.d.misc/avahid.in
138 @@ -1,4 +1,4 @@
139 -#!@SBINDIR@/runscript
140 +#!@SBINDIR@/openrc-run
141 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
142 # Released under the 2-clause BSD license.
143
144
145 diff --git a/init.d.misc/dbus.in b/init.d.misc/dbus.in
146 index d0004e7..5259853 100644
147 --- a/init.d.misc/dbus.in
148 +++ b/init.d.misc/dbus.in
149 @@ -1,4 +1,4 @@
150 -#!@SBINDIR@/runscript
151 +#!@SBINDIR@/openrc-run
152 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
153 # Released under the 2-clause BSD license.
154
155
156 diff --git a/init.d.misc/dhcpcd.in b/init.d.misc/dhcpcd.in
157 index b22d4d1..ff71979 100644
158 --- a/init.d.misc/dhcpcd.in
159 +++ b/init.d.misc/dhcpcd.in
160 @@ -1,4 +1,4 @@
161 -#!@SBINDIR@/runscript
162 +#!@SBINDIR@/openrc-run
163 # Copyright (c) 2009 Roy Marples <roy@×××××××.name>
164 # Released under the 2-clause BSD license.
165
166
167 diff --git a/init.d.misc/dnsmasq.in b/init.d.misc/dnsmasq.in
168 index bdb0411..fa57164 100644
169 --- a/init.d.misc/dnsmasq.in
170 +++ b/init.d.misc/dnsmasq.in
171 @@ -1,4 +1,4 @@
172 -#!@SBINDIR@/runscript
173 +#!@SBINDIR@/openrc-run
174 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
175 # Released under the 2-clause BSD license.
176
177
178 diff --git a/init.d.misc/hald.in b/init.d.misc/hald.in
179 index 741442f..eb7ce06 100644
180 --- a/init.d.misc/hald.in
181 +++ b/init.d.misc/hald.in
182 @@ -1,4 +1,4 @@
183 -#!@SBINDIR@/runscript
184 +#!@SBINDIR@/openrc-run
185 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
186 # Released under the 2-clause BSD license.
187
188
189 diff --git a/init.d.misc/named.in b/init.d.misc/named.in
190 index 924f5b5..3f55884 100644
191 --- a/init.d.misc/named.in
192 +++ b/init.d.misc/named.in
193 @@ -1,4 +1,4 @@
194 -#!@SBINDIR@/runscript
195 +#!@SBINDIR@/openrc-run
196 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
197 # Released under the 2-clause BSD license.
198
199
200 diff --git a/init.d.misc/ntpd.in b/init.d.misc/ntpd.in
201 index 6f18521..080ce2f 100644
202 --- a/init.d.misc/ntpd.in
203 +++ b/init.d.misc/ntpd.in
204 @@ -1,4 +1,4 @@
205 -#!@SBINDIR@/runscript
206 +#!@SBINDIR@/openrc-run
207 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
208 # Released under the 2-clause BSD license.
209
210
211 diff --git a/init.d.misc/openvpn.in b/init.d.misc/openvpn.in
212 index 699fc04..3237946 100644
213 --- a/init.d.misc/openvpn.in
214 +++ b/init.d.misc/openvpn.in
215 @@ -1,4 +1,4 @@
216 -#!@SBINDIR@/runscript
217 +#!@SBINDIR@/openrc-run
218 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
219 # Released under the 2-clause BSD license.
220
221
222 diff --git a/init.d.misc/polkitd.in b/init.d.misc/polkitd.in
223 index fda0764..829e93b 100644
224 --- a/init.d.misc/polkitd.in
225 +++ b/init.d.misc/polkitd.in
226 @@ -1,4 +1,4 @@
227 -#!@SBINDIR@/runscript
228 +#!@SBINDIR@/openrc-run
229 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
230 # Released under the 2-clause BSD license.
231
232
233 diff --git a/init.d.misc/sshd.in b/init.d.misc/sshd.in
234 index 7efb666..ae51505 100644
235 --- a/init.d.misc/sshd.in
236 +++ b/init.d.misc/sshd.in
237 @@ -1,4 +1,4 @@
238 -#!@SBINDIR@/runscript
239 +#!@SBINDIR@/openrc-run
240 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
241 # Released under the 2-clause BSD license.
242
243
244 diff --git a/init.d.misc/wpa_supplicant.in b/init.d.misc/wpa_supplicant.in
245 index f908e36..d924612 100644
246 --- a/init.d.misc/wpa_supplicant.in
247 +++ b/init.d.misc/wpa_supplicant.in
248 @@ -1,4 +1,4 @@
249 -#!@SBINDIR@/runscript
250 +#!@SBINDIR@/openrc-run
251 # Copyright (c) 2009 Roy Marples <roy@×××××××.name>
252 # Released under the 2-clause BSD license.
253
254
255 diff --git a/init.d/adjkerntz.in b/init.d/adjkerntz.in
256 index d1349c8..93a200b 100644
257 --- a/init.d/adjkerntz.in
258 +++ b/init.d/adjkerntz.in
259 @@ -1,4 +1,4 @@
260 -#!@SBINDIR@/runscript
261 +#!@SBINDIR@/openrc-run
262 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
263 # Released under the 2-clause BSD license.
264
265
266 diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in
267 index 72202f0..ca333be 100644
268 --- a/init.d/bootmisc.in
269 +++ b/init.d/bootmisc.in
270 @@ -1,4 +1,4 @@
271 -#!@SBINDIR@/runscript
272 +#!@SBINDIR@/openrc-run
273 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
274 # Released under the 2-clause BSD license.
275
276
277 diff --git a/init.d/consolefont.in b/init.d/consolefont.in
278 index 61e76c3..7ec93d6 100644
279 --- a/init.d/consolefont.in
280 +++ b/init.d/consolefont.in
281 @@ -1,4 +1,4 @@
282 -#!@SBINDIR@/runscript
283 +#!@SBINDIR@/openrc-run
284 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
285 # Released under the 2-clause BSD license.
286
287
288 diff --git a/init.d/devd.in b/init.d/devd.in
289 index 395dfa7..d071911 100644
290 --- a/init.d/devd.in
291 +++ b/init.d/devd.in
292 @@ -1,4 +1,4 @@
293 -#!@SBINDIR@/runscript
294 +#!@SBINDIR@/openrc-run
295 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
296 # Released under the 2-clause BSD license.
297
298
299 diff --git a/init.d/devdb.in b/init.d/devdb.in
300 index 9213758..3cc08a5 100644
301 --- a/init.d/devdb.in
302 +++ b/init.d/devdb.in
303 @@ -1,4 +1,4 @@
304 -#!@SBINDIR@/runscript
305 +#!@SBINDIR@/openrc-run
306 # Copyright (c) 2008 Roy Marples <roy@×××××××.name>
307 # Released under the 2-clause BSD license.
308
309
310 diff --git a/init.d/devfs.in b/init.d/devfs.in
311 index afc2cb7..5c167b0 100644
312 --- a/init.d/devfs.in
313 +++ b/init.d/devfs.in
314 @@ -1,4 +1,4 @@
315 -#!@SBINDIR@/runscript
316 +#!@SBINDIR@/openrc-run
317 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
318 # Released under the 2-clause BSD license.
319
320
321 diff --git a/init.d/dmesg.in b/init.d/dmesg.in
322 index 1c72f76..5b001fc 100644
323 --- a/init.d/dmesg.in
324 +++ b/init.d/dmesg.in
325 @@ -1,4 +1,4 @@
326 -#!@SBINDIR@/runscript
327 +#!@SBINDIR@/openrc-run
328 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
329 # Released under the 2-clause BSD license.
330
331
332 diff --git a/init.d/dumpon.in b/init.d/dumpon.in
333 index fdbdd49..1e23076 100644
334 --- a/init.d/dumpon.in
335 +++ b/init.d/dumpon.in
336 @@ -1,4 +1,4 @@
337 -#!@SBINDIR@/runscript
338 +#!@SBINDIR@/openrc-run
339 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
340 # Released under the 2-clause BSD license.
341
342
343 diff --git a/init.d/encswap.in b/init.d/encswap.in
344 index 57cc762..3df4a35 100644
345 --- a/init.d/encswap.in
346 +++ b/init.d/encswap.in
347 @@ -1,4 +1,4 @@
348 -#!@SBINDIR@/runscript
349 +#!@SBINDIR@/openrc-run
350 # Copyright 1992-2012 FreeBSD Project
351 # Released under the 2-clause BSD license
352
353
354 diff --git a/init.d/fsck.in b/init.d/fsck.in
355 index 9db5119..d3b6607 100644
356 --- a/init.d/fsck.in
357 +++ b/init.d/fsck.in
358 @@ -1,4 +1,4 @@
359 -#!@SBINDIR@/runscript
360 +#!@SBINDIR@/openrc-run
361 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
362 # Released under the 2-clause BSD license.
363
364
365 diff --git a/init.d/hostid.in b/init.d/hostid.in
366 index ce5574b..4495ddf 100644
367 --- a/init.d/hostid.in
368 +++ b/init.d/hostid.in
369 @@ -1,4 +1,4 @@
370 -#!@SBINDIR@/runscript
371 +#!@SBINDIR@/openrc-run
372 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
373 # Released under the 2-clause BSD license.
374
375
376 diff --git a/init.d/hostname.in b/init.d/hostname.in
377 index 4374548..eaeb79a 100644
378 --- a/init.d/hostname.in
379 +++ b/init.d/hostname.in
380 @@ -1,4 +1,4 @@
381 -#!@SBINDIR@/runscript
382 +#!@SBINDIR@/openrc-run
383 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
384 # Released under the 2-clause BSD license.
385
386
387 diff --git a/init.d/hwclock.in b/init.d/hwclock.in
388 index 0f94993..823a5ab 100644
389 --- a/init.d/hwclock.in
390 +++ b/init.d/hwclock.in
391 @@ -1,4 +1,4 @@
392 -#!@SBINDIR@/runscript
393 +#!@SBINDIR@/openrc-run
394 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
395 # Released under the 2-clause BSD license.
396
397
398 diff --git a/init.d/ipfw.in b/init.d/ipfw.in
399 index cb9b6df..df30f3b 100644
400 --- a/init.d/ipfw.in
401 +++ b/init.d/ipfw.in
402 @@ -1,4 +1,4 @@
403 -#!@SBINDIR@/runscript
404 +#!@SBINDIR@/openrc-run
405 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
406 # Released under the 2-clause BSD license.
407
408
409 diff --git a/init.d/keymaps.in b/init.d/keymaps.in
410 index 7abd731..eeed22a 100644
411 --- a/init.d/keymaps.in
412 +++ b/init.d/keymaps.in
413 @@ -1,4 +1,4 @@
414 -#!@SBINDIR@/runscript
415 +#!@SBINDIR@/openrc-run
416 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
417 # Released under the 2-clause BSD license.
418
419
420 diff --git a/init.d/killprocs.in b/init.d/killprocs.in
421 index 5c95925..5cd4fc4 100644
422 --- a/init.d/killprocs.in
423 +++ b/init.d/killprocs.in
424 @@ -1,4 +1,4 @@
425 -#!@SBINDIR@/runscript
426 +#!@SBINDIR@/openrc-run
427 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
428 # Released under the 2-clause BSD license.
429
430
431 diff --git a/init.d/local.in b/init.d/local.in
432 index e82d3cc..2f20568 100644
433 --- a/init.d/local.in
434 +++ b/init.d/local.in
435 @@ -1,4 +1,4 @@
436 -#!@SBINDIR@/runscript
437 +#!@SBINDIR@/openrc-run
438 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
439 # Released under the 2-clause BSD license.
440
441
442 diff --git a/init.d/localmount.in b/init.d/localmount.in
443 index 42b7988..bf3dd0f 100644
444 --- a/init.d/localmount.in
445 +++ b/init.d/localmount.in
446 @@ -1,4 +1,4 @@
447 -#!@SBINDIR@/runscript
448 +#!@SBINDIR@/openrc-run
449 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
450 # Released under the 2-clause BSD license.
451
452
453 diff --git a/init.d/loopback.in b/init.d/loopback.in
454 index 6267ec4..ec45a98 100644
455 --- a/init.d/loopback.in
456 +++ b/init.d/loopback.in
457 @@ -1,4 +1,4 @@
458 -#!@SBINDIR@/runscript
459 +#!@SBINDIR@/openrc-run
460 # Copyright (c) 2013 William Hubbs <w.d.hubbs@×××××.com>
461 # Released under the 2-clause BSD license.
462
463
464 diff --git a/init.d/mixer.in b/init.d/mixer.in
465 index a658e57..8bf152b 100644
466 --- a/init.d/mixer.in
467 +++ b/init.d/mixer.in
468 @@ -1,4 +1,4 @@
469 -#!@SBINDIR@/runscript
470 +#!@SBINDIR@/openrc-run
471 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
472 # Released under the 2-clause BSD license.
473
474
475 diff --git a/init.d/modules.in b/init.d/modules.in
476 index 0d6d21b..acce97e 100644
477 --- a/init.d/modules.in
478 +++ b/init.d/modules.in
479 @@ -1,4 +1,4 @@
480 -#!@SBINDIR@/runscript
481 +#!@SBINDIR@/openrc-run
482 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
483 # Released under the 2-clause BSD license.
484
485
486 diff --git a/init.d/mount-ro.in b/init.d/mount-ro.in
487 index 3e09352..a6438b5 100644
488 --- a/init.d/mount-ro.in
489 +++ b/init.d/mount-ro.in
490 @@ -1,4 +1,4 @@
491 -#!@SBINDIR@/runscript
492 +#!@SBINDIR@/openrc-run
493 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
494 # Released under the 2-clause BSD license.
495
496
497 diff --git a/init.d/moused.in b/init.d/moused.in
498 index ffbed76..2b63a34 100644
499 --- a/init.d/moused.in
500 +++ b/init.d/moused.in
501 @@ -1,4 +1,4 @@
502 -#!@SBINDIR@/runscript
503 +#!@SBINDIR@/openrc-run
504 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
505 # Released under the 2-clause BSD license.
506
507
508 diff --git a/init.d/mtab.in b/init.d/mtab.in
509 index beee3e1..8e5bc2f 100644
510 --- a/init.d/mtab.in
511 +++ b/init.d/mtab.in
512 @@ -1,4 +1,4 @@
513 -#!@SBINDIR@/runscript
514 +#!@SBINDIR@/openrc-run
515 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
516 # Released under the 2-clause BSD license.
517
518
519 diff --git a/init.d/netmount.in b/init.d/netmount.in
520 index 86cdcba..39ab0bc 100644
521 --- a/init.d/netmount.in
522 +++ b/init.d/netmount.in
523 @@ -1,4 +1,4 @@
524 -#!@SBINDIR@/runscript
525 +#!@SBINDIR@/openrc-run
526 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
527 # Released under the 2-clause BSD license.
528
529
530 diff --git a/init.d/network.in b/init.d/network.in
531 index 17237d3..2e9b897 100644
532 --- a/init.d/network.in
533 +++ b/init.d/network.in
534 @@ -1,4 +1,4 @@
535 -#!@SBINDIR@/runscript
536 +#!@SBINDIR@/openrc-run
537 # Copyright (c) 2009 Roy Marples <roy@×××××××.name>
538 # Released under the 2-clause BSD license.
539
540
541 diff --git a/init.d/newsyslog.in b/init.d/newsyslog.in
542 index 1cbbe95..894b0c0 100644
543 --- a/init.d/newsyslog.in
544 +++ b/init.d/newsyslog.in
545 @@ -1,4 +1,4 @@
546 -#!@SBINDIR@/runscript
547 +#!@SBINDIR@/openrc-run
548 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
549 # Released under the 2-clause BSD license.
550
551
552 diff --git a/init.d/nscd.in b/init.d/nscd.in
553 index 41e42ae..670f206 100644
554 --- a/init.d/nscd.in
555 +++ b/init.d/nscd.in
556 @@ -1,4 +1,4 @@
557 -#!@SBINDIR@/runscript
558 +#!@SBINDIR@/openrc-run
559 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
560 # Released under the 2-clause BSD license.
561
562
563 diff --git a/init.d/numlock.in b/init.d/numlock.in
564 index 433ba93..1b6d0a5 100644
565 --- a/init.d/numlock.in
566 +++ b/init.d/numlock.in
567 @@ -1,4 +1,4 @@
568 -#!@SBINDIR@/runscript
569 +#!@SBINDIR@/openrc-run
570 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
571 # Released under the 2-clause BSD license.
572
573
574 diff --git a/init.d/pf.in b/init.d/pf.in
575 index a8b301d..f4344a9 100644
576 --- a/init.d/pf.in
577 +++ b/init.d/pf.in
578 @@ -1,4 +1,4 @@
579 -#!@SBINDIR@/runscript
580 +#!@SBINDIR@/openrc-run
581 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
582 # Released under the 2-clause BSD license.
583
584
585 diff --git a/init.d/powerd.in b/init.d/powerd.in
586 index 88f050d..36d60a7 100644
587 --- a/init.d/powerd.in
588 +++ b/init.d/powerd.in
589 @@ -1,4 +1,4 @@
590 -#!@SBINDIR@/runscript
591 +#!@SBINDIR@/openrc-run
592 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
593 # Released under the 2-clause BSD license.
594
595
596 diff --git a/init.d/procfs.in b/init.d/procfs.in
597 index 1432ecf..0db5305 100644
598 --- a/init.d/procfs.in
599 +++ b/init.d/procfs.in
600 @@ -1,4 +1,4 @@
601 -#!@SBINDIR@/runscript
602 +#!@SBINDIR@/openrc-run
603 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
604 # Released under the 2-clause BSD license.
605
606
607 diff --git a/init.d/rarpd.in b/init.d/rarpd.in
608 index 8ea29ac..e11de6d 100644
609 --- a/init.d/rarpd.in
610 +++ b/init.d/rarpd.in
611 @@ -1,4 +1,4 @@
612 -#!@SBINDIR@/runscript
613 +#!@SBINDIR@/openrc-run
614 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
615 # Released under the 2-clause BSD license.
616
617
618 diff --git a/init.d/rc-enabled.in b/init.d/rc-enabled.in
619 index fed30ce..50587bc 100644
620 --- a/init.d/rc-enabled.in
621 +++ b/init.d/rc-enabled.in
622 @@ -1,4 +1,4 @@
623 -#!@SBINDIR@/runscript
624 +#!@SBINDIR@/openrc-run
625 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
626 # Released under the 2-clause BSD license.
627
628
629 diff --git a/init.d/root.in b/init.d/root.in
630 index 387f205..1668368 100644
631 --- a/init.d/root.in
632 +++ b/init.d/root.in
633 @@ -1,4 +1,4 @@
634 -#!@SBINDIR@/runscript
635 +#!@SBINDIR@/openrc-run
636 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
637 # Released under the 2-clause BSD license.
638
639
640 diff --git a/init.d/rpcbind.in b/init.d/rpcbind.in
641 index 77d6c87..c10deeb 100644
642 --- a/init.d/rpcbind.in
643 +++ b/init.d/rpcbind.in
644 @@ -1,4 +1,4 @@
645 -#!@SBINDIR@/runscript
646 +#!@SBINDIR@/openrc-run
647 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
648 # Released under the 2-clause BSD license.
649
650
651 diff --git a/init.d/savecache.in b/init.d/savecache.in
652 index 3dec78b..9040732 100644
653 --- a/init.d/savecache.in
654 +++ b/init.d/savecache.in
655 @@ -1,4 +1,4 @@
656 -#!@SBINDIR@/runscript
657 +#!@SBINDIR@/openrc-run
658 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
659 # Released under the 2-clause BSD license.
660
661
662 diff --git a/init.d/savecore.in b/init.d/savecore.in
663 index e256fba..b1b6ca3 100644
664 --- a/init.d/savecore.in
665 +++ b/init.d/savecore.in
666 @@ -1,4 +1,4 @@
667 -#!@SBINDIR@/runscript
668 +#!@SBINDIR@/openrc-run
669 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
670 # Released under the 2-clause BSD license.
671
672
673 diff --git a/init.d/staticroute.in b/init.d/staticroute.in
674 index 55d0680..34214e0 100644
675 --- a/init.d/staticroute.in
676 +++ b/init.d/staticroute.in
677 @@ -1,4 +1,4 @@
678 -#!@SBINDIR@/runscript
679 +#!@SBINDIR@/openrc-run
680 # Copyright (c) 2009 Roy Marples <roy@×××××××.name>
681 # Released under the 2-clause BSD license.
682
683
684 diff --git a/init.d/swap-blk.in b/init.d/swap-blk.in
685 index 4ddf61c..5a14083 100644
686 --- a/init.d/swap-blk.in
687 +++ b/init.d/swap-blk.in
688 @@ -1,4 +1,4 @@
689 -#!@SBINDIR@/runscript
690 +#!@SBINDIR@/openrc-run
691 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
692 # Released under the 2-clause BSD license.
693
694
695 diff --git a/init.d/swap.in b/init.d/swap.in
696 index 4d7a02c..a64ea60 100644
697 --- a/init.d/swap.in
698 +++ b/init.d/swap.in
699 @@ -1,4 +1,4 @@
700 -#!@SBINDIR@/runscript
701 +#!@SBINDIR@/openrc-run
702 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
703 # Released under the 2-clause BSD license.
704
705
706 diff --git a/init.d/swapfiles.in b/init.d/swapfiles.in
707 index 144096a..1c80500 100644
708 --- a/init.d/swapfiles.in
709 +++ b/init.d/swapfiles.in
710 @@ -1,4 +1,4 @@
711 -#!@SBINDIR@/runscript
712 +#!@SBINDIR@/openrc-run
713 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
714 # Released under the 2-clause BSD license.
715
716
717 diff --git a/init.d/swclock.in b/init.d/swclock.in
718 index 465f76c..b74d49a 100644
719 --- a/init.d/swclock.in
720 +++ b/init.d/swclock.in
721 @@ -1,4 +1,4 @@
722 -#!@SBINDIR@/runscript
723 +#!@SBINDIR@/openrc-run
724 # Copyright (c) 2009 Roy Marples <roy@×××××××.name>
725 # Released under the 2-clause BSD license.
726
727 @@ -17,7 +17,7 @@ start()
728 {
729 ebegin "Setting the local clock based on last shutdown time"
730 if ! swclock 2> /dev/null; then
731 - swclock --warn @SBINDIR@/runscript
732 + swclock --warn @SBINDIR@/openrc-run
733 fi
734 eend $?
735 }
736
737 diff --git a/init.d/syscons.in b/init.d/syscons.in
738 index 6a7523b..ce0b5a1 100644
739 --- a/init.d/syscons.in
740 +++ b/init.d/syscons.in
741 @@ -1,4 +1,4 @@
742 -#!@SBINDIR@/runscript
743 +#!@SBINDIR@/openrc-run
744 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
745 # Released under the 2-clause BSD license.
746
747
748 diff --git a/init.d/sysctl.BSD.in b/init.d/sysctl.BSD.in
749 index 9f84e36..92d5868 100644
750 --- a/init.d/sysctl.BSD.in
751 +++ b/init.d/sysctl.BSD.in
752 @@ -1,4 +1,4 @@
753 -#!@SBINDIR@/runscript
754 +#!@SBINDIR@/openrc-run
755 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
756 # Released under the 2-clause BSD license.
757
758
759 diff --git a/init.d/sysctl.Linux.in b/init.d/sysctl.Linux.in
760 index 2413154..1ebce66 100644
761 --- a/init.d/sysctl.Linux.in
762 +++ b/init.d/sysctl.Linux.in
763 @@ -1,4 +1,4 @@
764 -#!@SBINDIR@/runscript
765 +#!@SBINDIR@/openrc-run
766 # Copyright (c) 2007-2008 Roy Marples <roy@×××××××.name>
767 # Released under the 2-clause BSD license.
768
769
770 diff --git a/init.d/sysfs.in b/init.d/sysfs.in
771 index 7658cb5..1dba73f 100644
772 --- a/init.d/sysfs.in
773 +++ b/init.d/sysfs.in
774 @@ -1,4 +1,4 @@
775 -#!@SBINDIR@/runscript
776 +#!@SBINDIR@/openrc-run
777 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
778 # Released under the 2-clause BSD license.
779
780
781 diff --git a/init.d/syslogd.in b/init.d/syslogd.in
782 index 28090f2..953742b 100644
783 --- a/init.d/syslogd.in
784 +++ b/init.d/syslogd.in
785 @@ -1,4 +1,4 @@
786 -#!@SBINDIR@/runscript
787 +#!@SBINDIR@/openrc-run
788 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
789 # Released under the 2-clause BSD license.
790
791
792 diff --git a/init.d/termencoding.in b/init.d/termencoding.in
793 index d03633d..d3aa027 100644
794 --- a/init.d/termencoding.in
795 +++ b/init.d/termencoding.in
796 @@ -1,4 +1,4 @@
797 -#!@SBINDIR@/runscript
798 +#!@SBINDIR@/openrc-run
799 # Copyright (c) 2008-2009 Roy Marples <roy@×××××××.name>
800 # Released under the 2-clause BSD license.
801
802
803 diff --git a/init.d/tmpfiles.dev.in b/init.d/tmpfiles.dev.in
804 index 477fafa..c2de59f 100644
805 --- a/init.d/tmpfiles.dev.in
806 +++ b/init.d/tmpfiles.dev.in
807 @@ -1,4 +1,4 @@
808 -#!@SBINDIR@/runscript
809 +#!@SBINDIR@/openrc-run
810 # Copyright 1999-2012 Gentoo Foundation
811 # Released under the 2-clause BSD license.
812
813
814 diff --git a/init.d/tmpfiles.setup.in b/init.d/tmpfiles.setup.in
815 index fd9b015..7edef5a 100644
816 --- a/init.d/tmpfiles.setup.in
817 +++ b/init.d/tmpfiles.setup.in
818 @@ -1,4 +1,4 @@
819 -#!@SBINDIR@/runscript
820 +#!@SBINDIR@/openrc-run
821 # Copyright 1999-2012 Gentoo Foundation
822 # Released under the 2-clause BSD license.
823
824
825 diff --git a/init.d/ttys.in b/init.d/ttys.in
826 index aec8340..8fdd169 100644
827 --- a/init.d/ttys.in
828 +++ b/init.d/ttys.in
829 @@ -1,4 +1,4 @@
830 -#!@SBINDIR@/runscript
831 +#!@SBINDIR@/openrc-run
832 # Copyright (c) 2008 Roy Marples <roy@×××××××.name>
833 # Released under the 2-clause BSD license.
834
835
836 diff --git a/init.d/urandom.in b/init.d/urandom.in
837 index 97d0407..ded4113 100644
838 --- a/init.d/urandom.in
839 +++ b/init.d/urandom.in
840 @@ -1,4 +1,4 @@
841 -#!@SBINDIR@/runscript
842 +#!@SBINDIR@/openrc-run
843 # Copyright (c) 2007-2009 Roy Marples <roy@×××××××.name>
844 # Released under the 2-clause BSD license.
845
846
847 diff --git a/init.d/wscons.in b/init.d/wscons.in
848 index 35bd2b0..8467122 100644
849 --- a/init.d/wscons.in
850 +++ b/init.d/wscons.in
851 @@ -1,4 +1,4 @@
852 -#!@SBINDIR@/runscript
853 +#!@SBINDIR@/openrc-run
854 # Copyright (c) 2008-2009 Roy Marples <roy@×××××××.name>
855 # Released under the 2-clause BSD license.
856
857
858 diff --git a/man/Makefile b/man/Makefile
859 index 04862da..436f647 100644
860 --- a/man/Makefile
861 +++ b/man/Makefile
862 @@ -1,7 +1,7 @@
863 MAN3= einfo.3 \
864 rc_config.3 rc_deptree.3 rc_find_pids.3 rc_plugin_hook.3 \
865 rc_runlevel.3 rc_service.3 rc_stringlist.3
866 -MAN8= rc-service.8 rc-status.8 rc-update.8 openrc.8 runscript.8 \
867 +MAN8= rc-service.8 rc-status.8 rc-update.8 openrc.8 openrc-run.8 \
868 service.8 start-stop-daemon.8
869
870 # Handy macro to create symlinks
871
872 diff --git a/man/runscript.8 b/man/openrc-run.8
873 similarity index 99%
874 rename from man/runscript.8
875 rename to man/openrc-run.8
876 index e0d7cf0..0346241 100644
877 --- a/man/runscript.8
878 +++ b/man/openrc-run.8
879 @@ -22,10 +22,10 @@
880 .\" SUCH DAMAGE.
881 .\"
882 .Dd December 31, 2011
883 -.Dt RUNSCRIPT 8 SMM
884 +.Dt openrc-run 8 SMM
885 .Os OpenRC
886 .Sh NAME
887 -.Nm runscript
888 +.Nm openrc-run
889 .Nd a means of hooking shell commands into a service
890 .Sh SYNOPSIS
891 .Nm
892 @@ -47,7 +47,7 @@ and finally the script itself. At this point
893 then runs the command given.
894 .Pp
895 Commands are defined as shell functions within the script. Here is a list of
896 -some functions that all runscripts have by default:
897 +some functions that all scripts have by default:
898 .Bl -tag -width "RC_DEFAULTLEVEL"
899 .It Ar describe
900 Describes what the service does and each command the service defines.
901 @@ -411,7 +411,7 @@ rc_keyword="!-prefix"
902 .Pp
903 An example service script for foo.
904 .Bd -literal -offset indent
905 -#!/sbin/runscript
906 +#!/sbin/openrc-run
907 command=/usr/bin/foo
908 command_args="${foo_args} --bar"
909 pidfile=/var/run/foo.pid
910
911 diff --git a/man/rc-update.8 b/man/rc-update.8
912 index 459f069..3fa97a4 100644
913 --- a/man/rc-update.8
914 +++ b/man/rc-update.8
915 @@ -53,7 +53,8 @@ All services must reside in the
916 or
917 .Pa /usr/local/etc/init.d
918 directories.
919 -They must also conform to the OpenRC runscript standard.
920 +They must also be standard OpenRC scripts, meaning they must use
921 +openrc-run.
922 .Pp
923 .Bl -tag -width "Fl a , -delete service"
924 .It Ar add Ar service
925 @@ -87,6 +88,7 @@ option is given then we either add or remove the runlevel from the runlevel.
926 This allows inheritance of runlevels.
927 .Sh SEE ALSO
928 .Xr openrc 8 ,
929 +.Xr openrc-run 8 ,
930 .Xr rc-status 8
931 .Sh AUTHORS
932 .An Roy Marples <roy@×××××××.name>
933
934 diff --git a/man/rc_deptree.3 b/man/rc_deptree.3
935 index e980534..64fcf60 100644
936 --- a/man/rc_deptree.3
937 +++ b/man/rc_deptree.3
938 @@ -107,6 +107,6 @@ when done.
939 .Xr malloc 3 ,
940 .Xr free 3 ,
941 .Xr rc_stringlist_free 3 ,
942 -.Xr runscript 8
943 +.Xr openrc-run 8
944 .Sh AUTHORS
945 .An Roy Marples <roy@×××××××.name>
946
947 diff --git a/man/rc_plugin_hook.3 b/man/rc_plugin_hook.3
948 index 22a1c58..955ecb8 100644
949 --- a/man/rc_plugin_hook.3
950 +++ b/man/rc_plugin_hook.3
951 @@ -45,6 +45,6 @@ Plugins can affect the parent environment by writing NULL separated strings to
952 .Va rc_environ_fd .
953 .Sh SEE ALSO
954 .Xr openrc 8 ,
955 -.Xr runscript 8
956 +.Xr openrc-run 8
957 .Sh AUTHORS
958 .An Roy Marples <roy@×××××××.name>
959
960 diff --git a/man/rc_service.3 b/man/rc_service.3
961 index 4c1ee01..aba1636 100644
962 --- a/man/rc_service.3
963 +++ b/man/rc_service.3
964 @@ -141,7 +141,7 @@ is lost.
965 returns a list of extra commands the
966 .Fa service
967 supports beyond the default ones. See
968 -.Nm runscript
969 +.Nm openrc-run
970 for default commands.
971 .Pp
972 .Fn rc_service_plugable
973
974 diff --git a/sh/gendepends.sh.in b/sh/gendepends.sh.in
975 index 461c688..dfe7444 100644
976 --- a/sh/gendepends.sh.in
977 +++ b/sh/gendepends.sh.in
978 @@ -51,10 +51,12 @@ do
979 for RC_SERVICE in *; do
980 [ -x "$RC_SERVICE" -a -f "$RC_SERVICE" ] || continue
981
982 - # Only generate dependencies for runscripts
983 + # Only generate dependencies for OpenRC scripts
984 read one two three <"$RC_SERVICE"
985 [ "$one" = "#!@SBINDIR@/runscript" ] || \
986 + [ "$one" = "#!@SBINDIR@/openrc-run" ] || \
987 [ "$one" = "#!" -a "$two" = "@SBINDIR@/runscript" ] || \
988 + [ "$one" = "#!" -a "$two" = "@SBINDIR@/openrc-run" ] || \
989 continue
990 unset one two three
991
992
993 diff --git a/src/rc/.gitignore b/src/rc/.gitignore
994 index e04e2f3..bbfede6 100644
995 --- a/src/rc/.gitignore
996 +++ b/src/rc/.gitignore
997 @@ -58,3 +58,4 @@ mark_service_failed
998 rc-abort
999 rc
1000 openrc
1001 +openrc-run
1002
1003 diff --git a/src/rc/Makefile b/src/rc/Makefile
1004 index 209523a..5f5aa63 100644
1005 --- a/src/rc/Makefile
1006 +++ b/src/rc/Makefile
1007 @@ -11,7 +11,8 @@ SBINDIR= ${PREFIX}/sbin
1008 LINKDIR= ${LIBEXECDIR}
1009
1010 BINLINKS= rc-status
1011 -SBINLINKS= rc rc-service rc-update runscript service start-stop-daemon
1012 +SBINLINKS= rc rc-service rc-update openrc-run runscript service \
1013 + start-stop-daemon
1014 RC_BINLINKS= einfon einfo ewarnn ewarn eerrorn eerror ebegin eend ewend \
1015 eindent eoutdent esyslog eval_ecolors ewaitfile \
1016 veinfo vewarn vebegin veend vewend veindent veoutdent \
1017
1018 diff --git a/src/rc/builtins.h b/src/rc/builtins.h
1019 index 22bd0f2..2b38c67 100644
1020 --- a/src/rc/builtins.h
1021 +++ b/src/rc/builtins.h
1022 @@ -28,6 +28,7 @@
1023 int checkpath(int, char **);
1024 int fstabinfo(int, char **);
1025 int mountinfo(int, char **);
1026 +int openrc_run(int, char **);
1027 int rc_depend(int, char **);
1028 int rc_service(int, char **);
1029 int rc_status(int, char **);
1030
1031 diff --git a/src/rc/rc-applets.c b/src/rc/rc-applets.c
1032 index 8431eea..b4f61d9 100644
1033 --- a/src/rc/rc-applets.c
1034 +++ b/src/rc/rc-applets.c
1035 @@ -503,6 +503,7 @@ static const struct {
1036 #define A(a) { #a, a }
1037 A(fstabinfo),
1038 A(mountinfo),
1039 + { "openrc-run", openrc_run, },
1040 { "rc-depend", rc_depend, },
1041 { "rc-service", rc_service, },
1042 { "rc-status", rc_status, },
1043
1044 diff --git a/src/rc/runscript.c b/src/rc/runscript.c
1045 index e5cb62e..981e606 100644
1046 --- a/src/rc/runscript.c
1047 +++ b/src/rc/runscript.c
1048 @@ -1116,7 +1116,7 @@ static const char *const longopts_help[] = {
1049 #include "_usage.c"
1050
1051 int
1052 -runscript(int argc, char **argv)
1053 +openrc_run(int argc, char **argv)
1054 {
1055 bool doneone = false;
1056 int retval, opt, depoptions = RC_DEP_TRACE;
1057 @@ -1130,12 +1130,12 @@ runscript(int argc, char **argv)
1058
1059 /* Show help if insufficient args */
1060 if (argc < 2 || !exists(argv[1])) {
1061 - fprintf(stderr, "runscript should not be run directly\n");
1062 + fprintf(stderr, "openrc-run should not be run directly\n");
1063 exit(EXIT_FAILURE);
1064 }
1065
1066 if (stat(argv[1], &stbuf) != 0) {
1067 - fprintf(stderr, "runscript `%s': %s\n",
1068 + fprintf(stderr, "openrc-run `%s': %s\n",
1069 argv[1], strerror(errno));
1070 exit(EXIT_FAILURE);
1071 }
1072 @@ -1420,3 +1420,10 @@ runscript(int argc, char **argv)
1073
1074 return retval;
1075 }
1076 +
1077 +int
1078 +runscript(int argc, char **argv)
1079 +{
1080 + ewarn("runscript is deprecated; please use openrc-run instead.");
1081 + return (openrc_run(argc, argv));
1082 +}