forked from OpenRC/openrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
1741 lines (1158 loc) · 54.4 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
commit 56ddda54b5aa01474bf563d5a662075c35152858
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
supervise-daemon.c: clean up memory leaks
commit 3a803b3135837665d51ef4dd7a8b913c78e71ff6
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
librc-daemon.c: fix memory leaks
commit 72df51e17ba0e1a0f94451b4bbfb338288c4625c
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
librc-daemon: convert most snprintf calls to xasprintf
commit b2f5531194e33c229462e9f52fa1d9388463f7b7
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
librc-misc: convert snprintf calls to xasprintf
commit 19bf49a710f27d4774ed4c6372d87d6ba15f189e
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
libeinfo: convert remaining snprintf calls to xasprintf
commit 64354831da2adeba5cb2f91a81fa0f56e1ce4ed9
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
openrc: convert snprintf calls to xasprintf
commit e14edd765fdc4ed43356d2eef35fa99228e5d461
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
supervise-daemon: convert snprintf calls to xasprintf
commit f9d41243d8499c5d7027177d5aa716d5b5859cd6
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
start-stop-daemon: convert snprintf calls to xasprintf
commit be7ad06d4a0efce2a1144b2cf6f0cc361f2a81e4
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
rc-status: convert snprintf calls to xasprintf
commit a6165168953b9c7a62c089ce946476b23b73fb12
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
rc-status: fix gcc 7 warnings
commit 04721ece03b15503aa220f60e7c6159d01ee75e1
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
start-stop-daemon: fix gcc 7 warnings
commit c7e8f1133a42152cc293e6b637985f81bcf8b310
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
checkpath: fix gcc 7 warnings
commit 47e4bfae57402eedd017d6098b432c2c411cd374
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
fix gcc 7 warnings in pipe routines
commit 8a945194afb106428bc700e751078ef9944ee617
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
libeinfo: clean up gcc 7 compiler warnings
commit aa4a004c297ec7a1fb794ad2e53ef3ac8b3f4fd1
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
version 0.38
commit 9ec5d36bdddf5bb0e96b0c561bc5d013a8a2da2a
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Update ChangeLog
commit a097933edab9d7221df1831e098415d604437c98
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
sh/start-stop-daemon.sh: fix processing of the logger arguments
commit a6f5b1bb63070c24145df72040fa7b465948003c
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Update ChangeLog
commit e6d01471fe2a8eb8a15bb906d7c91c11805d1bef
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
start-stop-daemon: add ability to log stdout or stderr to processes
commit d4501a9f06c807f87be04f128e535a74b370fdb4
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
fix a typo
commit ec8abea4605395a2a59b26906ce4677a578e3c60
Author: Mike Gilbert <[email protected]>
Commit: William Hubbs <[email protected]>
Add helper to spawn process with stdin connected to a pipe
commit e4ddfa38e0e0318abf442b7aa07e0d8206191dd7
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
user-guide.md: small cleanups
commit 21d30bc6d9caca31d007631717a480a552b89701
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
service-script-guide.md: small cleanups
commit 2a1ff6e49c6603bb81eec3cafe2c587fa734289f
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
version 0.37
commit 6762cb875c9c039b79dcc447b9d0eb65356a7708
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Update ChangeLog
commit 6edf516a1fe0ad4f4e8738f9fdd1bf0bc7718361
Author: Austin English <[email protected]>
Commit: Doug Freed <[email protected]>
sh/supervise-daemon.sh: use start_stop_daemon_args if supervise_daemon_args is undefined
commit 7e56a49e23c810673b83e48eb9ca36229bb4016e
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Logger: only log printable characters and newlines
X-Gentoo-Bug: 651412
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=651412
commit fa5aea80c50fb724d2c98a6542307adbafd0e62d
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
openrc-run.sh: move crashed test outside started test
This is handled inside librc, so we don't need the nesting in this
script.
commit 0f4fa41574a4ebf8117493e5411f8ab522010467
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Add mark_service_crashed binary
commit 5d6dd97bba3559b57fb1c1de35e644c6dbd6baa7
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
rc-misc: add the crashed state
commit 37e29442721af0dc3846e87ef2b85a474af3cf2b
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
librc: Add check for crashed state
In rc_service_state,, call rc_service_daemons_crashed to check for
a crashed daemon if the service is started.
commit 4e0eace837287845504c9895429dc9f64872d075
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
librc: Add crashed state
commit faa8318b3ba278544413a39d4a5ae4457711793f
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Remove the _rc_can_find_pids function
This test to find if we could see pid 1 was being used inconsistently in
rc-status and mark_service_crashed to decide whether we could test to
see if the daemon for the service was crashed, and it was not part of
the librc library.
I am removing it from the executables because of inconsistent usage. I
will add it to the library if it is needed there.
commit 08da36149c0b41c64a09369c3eef5e2f5a6fa39c
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
rc-service: add --ifstarted and --ifstopped options
commit 56870d0db18209396f8276bdc05d413fe4dd7a88
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Man: rc-service man page cleanups
commit 4d47ce440c3e8f193cff82a77e6691ee6e7fac33
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
rc-service: add -d/--debug and -D/--nodeps options
commit 958f57d895b6573b39e62097e5e9881f16174715
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
openrc-run: respect the RC_NODEPS environment variable
commit 04886efd85328988657c34440da9ba6aa2841cfd
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Add RC_DEBUG and RC_NODEPS to environment whitelist
These are needed so rc-service can pass debug and nodeps options to
openrc-run.
commit d980798d6444bbfc508796a233e962bf4dd61275
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
openrc-run: respect the IN_DRYRUN environment variable
This allows rc-service to pass the tryrun option to openrc-run.
This is for #225.
commit 414a9aae6ce066d2a6ad42e7e24d1c12a7b46409
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
rc-misc.c: Add IN_DRYRUN to environment whitelist
This allows rc-service to pass the dryrun option to openrc-run.
This is for #225.
commit a7f475ca04856ef8232364c5b0c3191566b0696c
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
rc-service: add a --dry-run option
This is for #225.
commit 3c53680018c1799d0d804e241a9fa4d3b9423896
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
build: standardize installation modes
Gentoo was changing some of our installation modes from 0444 to 0644.
There isn't a reason to install things 0444, so we are switching these
to 0644 so the Gentoo ebuild doesn't need this extra step.
commit f0ad647303daca528cb9b75f9a07d422318635c2
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Revert "savecache: stop saving the dependency tree"
It is safe to save the deptree, but we also need to regenerate it at
boot time.
commit b35e03b6b1acc841ac33f601dd39c1152523621e
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Revert "Logger: only log printable characters and newlines"
This reverts commit 2b1392af2fe9e5dfc8eda2f19d896efdc41840bf.
This seems to create issues shutting down, so I need to look into it
further.
commit 2b1392af2fe9e5dfc8eda2f19d896efdc41840bf
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Logger: only log printable characters and newlines
X-Gentoo-Bug: 651412
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=651412
commit a3d0e293eebcb92564c473e61ca42724844fb279
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Remove localmount from dependencies for linux-only services
This removes localmount from the dependencies of the consolefont,
keymaps, numlock and procfs services.
These services are Linux only and the default modern linux system has /
and /usr on the same file system.
This also fixes the following issue.
X-Gentoo-Bug: 651998
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=651998
commit 0200002b8cbd061ac79b6aed4024220cd0386d2c
Author: Andrey Utkin <[email protected]>
Commit: William Hubbs <[email protected]>
start-stop-daemon: don't fail stopping if pidfile is gone
If pidfile does not exist when we are stopping the daemon, assume it is
already stopped, and report success.
hostapd is an example of a daemon which removes its pidfile when it is
exiting. If this daemon terminates prematurely, that is, without s-s-d
involvement, then openrc fails to restart it, because s-s-d "stop"
command fails when pidfile is missing.
X-Gentoo-Bug: 646274
X-Gentoo-Bug-URL: https://bugs.gentoo.org/646274
commit f4e2142089487b7f5c99da949d7bf8d038724df7
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Add _POSIX_C_SOURCE definition to Linux build
We need this to allow builds on uclibc-ng based systems.
X-Gentoo-Bug: 650908
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=650908
commit 49a90f27a848ba02a363fc0c844d6284728bdd73
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
typo fix
commit 2ae60ca0419d60c86904a8e15e71e902549e18d4
Author: Scall <[email protected]>
Commit: Doug Freed <[email protected]>
rc-update: fix typo
commit 6b475ab26992f1dd8815700828df46abc4b71d27
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
init.d/modules: add code from modules-load service
There is no reason for these to be separate services. I did add a
provide so that we don't break backward compatibility.
commit b302b0c094c2c99b810aec9c8877adcd1effabac
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
net-online: always start after net
X-Gentoo-Bug: 650600
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=650600
commit 40aa69cf3a99fa080375a702631da4d2311ebf3e
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
agetty.in: allow status to be displayed
commit 5346fbf2c90b33b3abc01588e4727d4402f8db62
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
supervise-daemon: fix off-by-one error
commit 92e6bdee12fa9d87a2535446ceccee261305e87c
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Use _BSD_SOURCE on FreeBSD
commit 71f275b2aa04d9a9323a49d1421796c4d50b1436
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
typo fix
commit 6dc0d0af333592203fabd4746279bb15d2801c0b
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Remove _XOPEN_SOURCE macros from builds
commit 59a9e53378891be7b12ed304ccb609e27da70751
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Add _POSIX_C_SOURCE macro to FreeBSD build
commit 122768d339175c925a1a228792f4725b7c802f46
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
man: document default retry specification for supervise-daemon
commit fa3c60c0d8fd2267be5c1b156530b136a2503088
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
man: document default retry sppecification for start-stop-daemon
commit 61905bfcf560219939c902dbb8fe9bc5088a42cf
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Clean up cgroups v2 code
Remove the IFS manipulation and simplify the loop that processes the
settings.
commit 3e68013631765e00eddf118bc24e38254e7f6d64
Author: Scall <[email protected]>
Commit: Doug Freed <[email protected]>
init.d: swap should always be started after root
Otherwise if a swap file is being used, and swap is started before
root, swapon may fail because of a read-only filesystem.
commit b46123f2e19a5eb8dc02b898e8c20a2ccc211615
Author: Chris Cromer <[email protected]>
Commit: Doug Freed <[email protected]>
openrc-run: fix memory size (#213)
Fixes #212
commit 109869641f7b58d07819f6b65d7b085abf75083b
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
fix build on FreeBSD
commit e8a2305de0320dc98bf187bb97f936e2dc4a4554
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
version 0.36
commit f62975a1f8c4d5d4abdf78d8cad5509216138f03
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Update ChangeLog
commit 5bb6f9aa318a6d0507971b74d88c3fd2803bae4b
Author: Jason Zaman <[email protected]>
Commit: William Hubbs <[email protected]>
init.sh: apply SELinux label for /run early in boot
Some initramfs mount /run which then ends up with the wrong labels.
Force relabel all of /run right after its mounted to fix.
commit 1ab8541a6ccb9d72c6faeaf2d616fc49f6cdfaf6
Author: Jason Zaman <[email protected]>
Commit: William Hubbs <[email protected]>
init-early.sh.Linux.in: apply the selinux label to /dev/console early
/dev/console is relabelled later in the devfs init script, but by then we
have already missed some of the messages, so fix that label early.
commit 038c03bef315314ddb1e460c67d29b2599b494ad
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
supervise-daemon: make an error message more verbose
commit e51dc29e2f3b2718a62347e8588115e786a9f3c8
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
cgroups: fix indentation
commit c6047f887a362cb8d96624fbd73484ca703acf53
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
cgroups: add rc_cgroup_memory_use_hierarchy setting for cgroups v1
commit 0506d68427e342366d826aae4bfbbc6cc0adecc2
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
fstabinfo: fix an error message
commit c3d666acaf51c771671b0fa54bd8ec0f5d29859e
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
openrc: remove unused #define's.
commit e93b1d76d150c4477015052fc3df9b94647e5b5d
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
openrc: convert another execl() call to execlp()
commit acf1e43f815898c4a4957db352f71f3fb629edf3
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
openrc-init: convert execl calls to execlp
commit f383fd87b121492a04362ca9041f686d981718f1
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
kill_all: change execl call to execlp
commit cfded513cd9b7febe4b7cf39a80411e4303f0655
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
openrc-init: set a default path
The default path provided by the system if one isn't set only includes
"/bin:/usr/bin". This adds the default path setting from sysvinit.
commit 16ff3cd8df6169f73e3d7cf00758a4703f62cbf0
Author: Christian Brauner <[email protected]>
Commit: William Hubbs <[email protected]>
check whether /sys/fs/cgroup is a mountpoint
The current check only tries to detect whether /sys/fs/cgroup exists and
whether it is writable or not. But when the init system doesn't mount
cgroups then /sys/fs/cgroup will just be an empty directory. When paired
with unprivileged containers that mount sysfs this will cause misleading
errors to be printed since /sys/fs/cgroup will be owned by user
nobody:nogroup in this case. Independent of this specific problem this
check will also be misleading when the /sys/fs/cgroup exists and is in
fact writable by the init system but isn't actually a mountpoint.
Note from William. "grep -qs" doesn't need to redirect output to
/dev/null since it is completely silent.
This fixes #209.
commit 38032626a6c2f8e869197999f32ac3634667cc86
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
improve cgroup configuration checks
make the base/controller functions return successfully if cgroups v1/v2
are not configured in the kernel
commit aa7d3a7911b658c550e7ce76cd6d7d46541fc323
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
openrc: force deptree update for sysinit runlevel
commit 98262647a9d2f3c65a7ceb1aaa81095522c1ef06
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
supervise-daemon: zero out the cmdline buffer when it is allocated
commit 5868abe97babcc287794dcb36ad8e77989b6ddcf
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
start-stop-daemon: compiler warning cleanup
commit 71aad16256604e0e9e146221957a9b00cfe67b99
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
openrc-run: clean up a compiler warning
commit e275da84de1589253da5ff6a7c272cf1c82f8567
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
supervise-daemon: remove references to PATH_MAX
commit a6cc7f06cf3807a0e0590697e1f14e6ab9055271
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
rc.c: remove PATH_MAX references
commit c1178c8eebb92c9f3702e981cd4af9ef41f51884
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
rc-selinux.c: remove references to path_max
commit 3c031ca9780c555817fe9ccb8b23ceb231129724
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
rc-plubin.c: remove references to PATH_MAX
commit 8e02406d8fbf92167c30431987d5de8de72cd7df
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
rc-misc.c: remove references to PATH_MAX
commit 8dbdabcc5e0df8ac36722a4ba7bfe30664cc9919
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
start-stop-daemon: clean up string handling
commit 488d8989c518d9256f183899aac02024c679b93e
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
openrc-run: clean up string handling
- remove references to PATH_MAX
- use xasprintf to create strings
commit 9e14b35da8942bd8fa552363617c3415887f485f
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
rc-update: remove reference to PATH_MAX
commit 7b4879cb72e907414b70553663bd9b6fda8d4408
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
mountinfo: create strings with xasprintf
commit 74cfb455c59298f86849541e724ae346ff205c3d
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
kill_all: create strings with xasprintf
commit 0110487722646ebf9bc2c4e12b4b4a3c358cb10d
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
helpers.h: silence compiler warnings about xasprintf
commit 68b9b0bc2a11d144870d14fcb8ac24e6c9c63354
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
xasprintf: exit if return value of vsnprintf is invalid
commit 4616f8f809ee8566904ca37f2b8bf0409a487475
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
helpers.h: add xasprintf function
This is our own version of asprintf(). This original code was written by
Mike Frysinger, and I was able to modify it to use our memory helper
functions.
We need a version of this code because it is not available on glibc at
least without defining _GNU_SOURCE, and I would rather not do that.
This is the first step in improving string handling in OpenRC for #207.
commit 287d71bd2591ddec73efe356db081020e65cd922
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
helpers.h: style fix
commit c1ffe4d9f2e10b6853464cc298d1922c81ae92f4
Author: Michael Orlitzky <[email protected]>
Commit: William Hubbs <[email protected]>
man/openrc-run.8: fix mountinfo args.
The "Ar" tag for the mountinfo command contained a typo (leading
space) that resulted in the tag being output verbatim; that is,
mountinfo ... .Ar mount1 mount2
rather than e.g.
mountinfo ... <mount1> <mount2>
This commit deletes the leading space to fix the output.
This fixes #204.
commit 4c517bdb2b69eac36f004ae41bb9cbb212fe0a51
Author: Michael Orlitzky <[email protected]>
Commit: William Hubbs <[email protected]>
man/openrc-run.8: add missing "Xo" tags for fstabinfo and mountinfo.
The BUILTINS are all surrounded by Xo...Xc tags, but the opening "Xo"
was missing from the two commands fstabinfo and mountinfo. This commit
adds them, and thereby fixes the spacing when viewed by man.
This is for #204.
commit 110582491ff02db061b567636a237460afbc489c
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
service-script-guide.md cleanups
Refer to /var/run in the documentation instead of /run, and make it
clear at the top of the pidfile section that we use /run under Linux.
This is for #202.
commit 5dd1d39d20c118064d31ed65dc7ae2de75dd7908
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
typo fix
commit 1771bc2a83fe65bfe6ec3e93ea7632609e697a38
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
checkpath: use fchown and fchmod to handle ownership and mode changes
This is related to #195.
This is an attempt to shorten the window for the first two issues
discussed by using a file descriptor which does not follow symbolic
links and using the fchmod and fchown calls instead of chown and chmod.
with.
commit 87c98ebb01873120eecc1757e615b3a4c14a2f1f
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
checkpath: fix lchown error message
X-Gentoo-Bug: 643084
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=643084
commit 4af5a80b0c516773286cc30e743dc90a2d19df23
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
_rc_deptree_load - return NULL if the stat() call is not successful
X-Gentoo-Bug: 643084
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=643084
commit fee2ffe559bc39beec16585daf557b902a53137b
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Reformat and fix titles in documentation
commit 8878f8916b7682a333d1e40af991cd7354192be1
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Rename guide.md to user-guide.md to better describe its purpose
commit 14e3359a9e4174da3e422957d9de56907f025875
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
move developer documentation from guide.md to service-script-guide.md
commit 918d955fd2de1f594b83508f5ddd5271534e3591
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
checkpath: use lchown instead of chown
Checkpath should never follow symbolic links when changing ownership of a file.
This is for https://github.com/openrc/openrc/issues/195.
commit 92cfa0e543d380ab290d06e98e2fef1b283349fe
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
service-script-guide.md: formatting changes
Add a title, adjust the headings and update the example that referred to
"net.lo" to refer to "loopback".
commit c2bd33e4838eb56bebe2707f6ca6bd05e9df5b24
Author: Michael Orlitzky <[email protected]>
Commit: William Hubbs <[email protected]>
service-script-guide.md: new guide for service script authors.
This fixes #162.
commit f42ec82f21f3760b829507344ad0ae761e1d59aa
Author: 3PO <[email protected]>
Commit: William Hubbs <[email protected]>
net-online: only process symbolic links in /sys/class/net
The /sys/class/net directory contains files which are not symlinks if
the system has bonded devices [1]. We should ignore these files.
This fixes #196.
[1] https://elkano.org/blog/manage-interface-bondings-sysfs-interface/
commit 7affff568a0aa83d732757c4699d4b94b7e3a9aa
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
init.d.examples: pid files always go in /var
This removes the @VARBASE@ substitution since it is always translated to
/var.
commit 4f750933fd8ef944be58bfeef071a8e35fc0c606
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
procfs: remove the @sysconfdir@ reference
commit 50b69d564a8f89b8137bb6d9d53aac1e44f6c23c
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
hostname: replace @SYSCONFDIR@ references with /etc
I do not know of any situation where /etc/hostname is at any other
location. Also, this does not run on prefix.
commit eb18f4f3483b99705f944c7274b4a6b451716df7
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
hwclock: use shell variables for configuration file path
This removes a reference to @SYSCONFDIR@.
commit d5f3fe52c87928095bd2659823b985d231f0718c
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
sysctl: hard code paths for sysctl files on *bsd
For *BSD,the sysctl*.conf files are always in /etc.
commit bb1bc6eeb73b3483a1ebdfc142a11240b58588cf
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
local: misc cleanups
Remove references to @SYSCONFDIR@ since these can be calculated at
runtime.
Also style fixes.
commit 53844fd0dcd9741b5f19dee7c00787be7e904c3c
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
devfs: cleanup
clean up local definitions. Also remove @SYSCONFDIR@ substitutions since
they can be calculated at runtime.
commit 14938c29cefe869872b987f8e606da72024fa8bb
Author: bell07 <[email protected]>
Commit: William Hubbs <[email protected]>
net-online: wait for ping_test_host
The script should wait till the ping host is available or timeout reached
Closes : #179
Closes : #191
commit 8bf501aaf2cb60b8ddf1b2fa2d1ba0ef970fb790
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
network: use 'command -v ip' to test for the ip executable
This is an improved test because it doesn't require the ip executable to be
in a specific path.
commit 9d05f68b51d7b31634cde30a482ec0e3da3b1c21
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Do not use file tests in net-online
https://unix.stackexchange.com/questions/252002/help-testing-special-file-in-sys-class-net
This is for #189
commit ee2524cd1d0305e207f7dfac52742a1d5e77ea4a
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
net-online: clean up quoting and test for existence
This is for #178.
commit 5c81661d4758dea039860ae2481476a70e78ac47
Author: Marcel Greter <[email protected]>
Commit: William Hubbs <[email protected]>
Gracefully handle unreadable /sys/class/net/dev/ nodes
Fixes https://bugs.gentoo.org/629228
Fixes #189
Fixes #185
Fixes #178
commit fb96c9c127dcfa932460b0e8a977ba5f7d26a418
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Make bash-completion and zsh-completion optional
commit 6c456f9383ab0000527b4363bc82fc17850aba18
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Add zsh-completion support
commit d220fc272337b216bff6ac781a7b6be4e6f3caee
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
add bash completion support
This fixes #188.
commit a2447dfb420cbd97a65cc085404c031d42cb3dfb
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
rc-service: add --ifcrashed option
This works like the other --if options. If the service is crashed, run
the command.
This fixes #154.
commit cee3919908c2d715fd75a796873e3308209a4c2e
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
Clean up the calls to group_add_service
This function should only be called once and it does not take any
arguments.
X-Gentoo-Bug: 639166
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=639166
commit 0feadd2922484ec181c2ab86a5f7f8d6d37c5c77
Author: William Hubbs <[email protected]>
Commit: William Hubbs <[email protected]>
man/openrc-run.8: update documentation for command_user
commit a7c99506d9de81b9a2a7547bd11715073de1ce95
Author: Will Miles <[email protected]>