I am trying to ssh into a server to fix it. When I ssh in I can restart the rsyncd dameon just fine via the command
But I am trying to do this from a central location via ssh in a script like so
ssh root@hostname "/etc/init.d/rsyncd restart"
* Starting rsyncd ...@RSYNCD: 29
@ERROR: protocol startup error
[ !! ]
and this always fails!
I can't get this to work or even understand why it doesn't. There aren't a lot of env vars in the shell and the script uses only one which shouldn't matter at all if it's present or not (it's at the end of the line so if it's blank it's ok)
Can anybody help out on this?