I’m trying to start syndaemon during boot so it’s available from the login window. Nothing has worked, so I have evolved a more and more complicated attempt to try to get at what is going on. Here is where I am at now:
#!/bin/bash /home/michael/syntest &
#!/bin/bash echo "BEGIN" >> /home/michael/synlog ps aux | grep [s]yndaemon I=0 while [ "$ ?" = "1" ]; do let I=$ I+1 echo "TRY $ I" >> /home/michael/synlog syndaemon -d -i 0.5 -R >> /home/michael/synlog2 2>&1 sleep 1 ps aux | grep [s]yndaemon done ps aux | grep [s]yndaemon >> /home/michael/synlog echo "END" >> /home/michael/synlog
ls -l /etc/rc5.d/S99syndaemon /etc/init.d/syndaemon /home/michael/syntest -rwxr-xr-x 1 root root 37 Apr 22 20:59 /etc/init.d/syndaemon lrwxrwxrwx 1 root root 19 Apr 22 18:24 /etc/rc5.d/S99syndaemon -> ../init.d/syndaemon -rwxr-xr-x 1 root root 362 Apr 22 20:54 /home/michael/syntest
The log file
/home/michael/synlog is not being created.
I also tried both of these commands, to no effect:
sudo update-rc.d syndaemon defaults sudo service syndaemon start
Why won’t my script run? Why isn’t synclient being run?