Results 1 to 1 of 1
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
Code:
/etc/init.d/rsyncd restart
But ...
- 12-13-2006 #1
Problem restarting service via ssh
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 soCode:/etc/init.d/rsyncd restart
and this always fails!Code:ssh root@hostname "/etc/init.d/rsyncd restart" * Starting rsyncd ...@RSYNCD: 29 @ERROR: protocol startup error [ !! ]
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?


Reply With Quote