Skip to content

Commit

Permalink
package/run.rclocal will find both /etc/rc.local /etc/rc.d/rc.local
Browse files Browse the repository at this point in the history
  • Loading branch information
sagredo-dev committed Oct 14, 2024
1 parent 58987d6 commit a299528
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,6 @@ Oct 10, 2024
Oct 14, 2024
version daemontools 0.78.3 (Roberto Puzzanghera)
- all package/ scripts now run the bash shell
- package/run script will recognize if we are in an lxc container to skip inittab configuration
- package/run.rclocal will find both /etc/rc.local /etc/rc.d/rc.local
- daemontools-0.78.2 directory renamed to daemontools
10 changes: 5 additions & 5 deletions admin/daemontools/package/run.rclocal
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

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

0 comments on commit a299528

Please sign in to comment.