Skip to content

Commit a299528

Browse files
committed
package/run.rclocal will find both /etc/rc.local /etc/rc.d/rc.local
1 parent 58987d6 commit a299528

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,6 @@ Oct 10, 2024
106106
Oct 14, 2024
107107
version daemontools 0.78.3 (Roberto Puzzanghera)
108108
- all package/ scripts now run the bash shell
109+
- package/run script will recognize if we are in an lxc container to skip inittab configuration
110+
- package/run.rclocal will find both /etc/rc.local /etc/rc.d/rc.local
109111
- daemontools-0.78.2 directory renamed to daemontools
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22

3-
if grep svscanboot /etc/rc.local >/dev/null
3+
if grep svscanboot $1 >/dev/null
44
then
55
echo 'rc.local contains an svscanboot line. I assume that svscan is already running.'
66
else
7-
echo 'Adding svscanboot to /etc/rc.local...'
8-
rm -f /etc/rc.local'{new}'
9-
cat /etc/rc.local package/boot.rclocal > /etc/rc.local'{new}'
10-
mv -f /etc/rc.local'{new}' /etc/rc.local
7+
echo "Adding svscanboot to $1..."
8+
rm -f ${1}'{new}'
9+
cat $1 package/boot.rclocal > ${1}'{new}'
10+
mv -f ${1}'{new}' $1
1111
echo 'Reboot now to start svscan.'
1212
fi

0 commit comments

Comments
 (0)