Already tried setting it to 20 with no impact.
Following some posts I found, I wrote a short script to launch as root via Lingon:
- Code: Select all
#!/bin/zsh
chsh -s /bin/zsh
echo "The user is: $(whoami)"
echo "The shell is: $SHELL"
if [ ! -d "/Volumes/backup-on-whp/" ]
then
echo "Need to import pool"
/usr/local/bin/zpool import backup-on-whp
else
exit
fi
which resulted in:
- Code: Select all
The user is: root
The shell is: /bin/sh
Need to import pool
cannot import 'backup-on-whp': no such pool available
Notice that it reports the shell as sh and not bash. Although it reports that no such pool is available, I know it is there and intact. Realizing that the default shell for Catalina is ZSH, I changed the shebang and the chsh to /bin/zsh, but the code still reported the shell as sh and continued to fail.
What makes this even stranger is that when I execute the same script from the command line as root, it succeeds:
- Code: Select all
The user is: root
The shell is: /bin/sh
Need to import pool
After the "Need to import pool", the script sits for about 20 seconds as it imports the pool and all works normally. I don't understand why the script would work when called manually, but not be able to see the pool when called by Lingon.