as
[snip]
I think there's your problem, -p $PASSWD doesn't make any sense, see man 1
sudo.
rc.local runs as root, root doesn't need to know the password for
$USERNAME in order to run as $USERNAME so just do
/usr/bin/sudo -u $USERNAME $DAEMON
Not sure what you're trying to achieve with -g $CONFIGDIR either,
again see man 1 sudo.
Cheers,
Damon
Previous message: [thread] [date] [author] Next message: [thread] [date] [author]