OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
3.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../runit/rockify.patch
  5. # Copyright (C) 2007 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. # --- SDE-COPYRIGHT-NOTE-END ---
  18. we need to export vars to be read inside init.d/system
  19. currently we simulate sysv's stage 2
  20. Alejandro
  21. --- ./etc/debian/1.orig 2005-08-24 16:14:38.000000000 -0400
  22. +++ ./etc/debian/1 2005-09-24 18:42:18.000000000 -0400
  23. @@ -1,10 +1,17 @@
  24. #!/bin/sh
  25. # system one time tasks
  26. -PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  27. +{
  28. +export PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  29. -/etc/init.d/rcS
  30. -/etc/init.d/rmnologin
  31. +for x in /etc/runit/1.d/*; do
  32. + [ -x $x ] && $x start
  33. +done
  34. -touch /etc/runit/stopit
  35. -chmod 0 /etc/runit/stopit
  36. +# write ET mark for btee
  37. +echo -ne '\004'
  38. +
  39. +} 2>&1 | /sbin/btee a /var/log/init.msg
  40. +
  41. +touch /etc/runit/{stopit,reboot}
  42. +chmod 0 /etc/runit/{stopit,reboot}
  43. --- ./etc/debian/3.orig 2006-06-29 07:53:16.000000000 +0000
  44. +++ ./etc/debian/3 2006-07-07 13:09:50.000000000 +0000
  45. @@ -1,14 +1,18 @@
  46. #!/bin/sh
  47. exec 2>&1
  48. -PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  49. +export PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  50. -LAST=0
  51. -test -x /etc/runit/reboot && LAST=6
  52. +export INIT_DOES_REBOOTHALT=1
  53. +export RUNLEVEL=0
  54. +test -x /etc/runit/reboot && export RUNLEVEL=6
  55. echo 'Waiting for services to stop...'
  56. -sv -w196 force-stop /var/service/*
  57. +sv -w15 force-stop /var/service/*
  58. sv exit /var/service/*
  59. echo 'Shutdown...'
  60. -/etc/init.d/rc $LAST
  61. +for x in /etc/runit/3.d/*; do
  62. + [ -x $x ] && $x stop
  63. +done
  64. +true
  65. --- ./etc/debian/ctrlaltdel.orig 2005-08-24 16:14:38.000000000 -0400
  66. +++ ./etc/debian/ctrlaltdel 2005-09-14 05:05:04.000000000 -0400
  67. @@ -4,6 +4,6 @@
  68. MSG="System is going down in 14 seconds..."
  69. # echo 'disabled.' ; exit
  70. -touch /etc/runit/stopit
  71. -chmod 100 /etc/runit/stopit && echo "$MSG" | wall
  72. +touch /etc/runit/{stopit,reboot}
  73. +chmod 100 /etc/runit/{stopit,reboot} && echo "$MSG" | wall
  74. /bin/sleep 14
  75. --- ./etc/2.orig 2006-03-12 22:46:12.000000000 +0100
  76. +++ ./etc/2 2006-03-12 22:46:26.000000000 +0100
  77. @@ -1,6 +1,6 @@
  78. #!/bin/sh
  79. -PATH=/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
  80. +PATH=/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11/bin
  81. exec env - PATH=$PATH \
  82. runsvdir -P /var/service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'