mac.ron 2 Report post Posted April 1, 2010 Hi all! Did anybody find -- or is there -- a working and reliable way to stop and restart the Retrospect Engine via command line? To make sure that all newly attached tape drives are recognized by the engine at a certain time we simply would like to stop the engine once weekly when there are no backup processes running. And then restart it after a few seconds to achieve a rescan of the available devices. The computer the engine is running on is a server which needs to be up all the time. We are using Retro 8 Multi Server (Engine 8.1.626.1) on a Mac OS X Server 10.6.2 machine. I would like to setup a launchd plist which simply runs a shell script to perform the Retrospect Engine restart at a certain time every week. Of course I've found several ways to kill and relaunch the engine, but it would be helpful to know the commands issued when you hit the "Start/Stop Engine" button in Retrospect's system preferences. Thank you in advance and happy Easter, Ron. 2 Share this post Link to post Share on other sites
Maser 20 Report post Posted April 1, 2010 I *believe* this works to start it sudo /bin/launchctl load /Library/LaunchDaemons/com.retrospect.launchd.retroengine.plist and this to stop it: sudo /bin/launchctl unload /Library/LaunchDaemons/com.retrospect.launchd.retroengine.plist I know the former command will start the engine if the engine has crashed and will not start from the System Preference (I can make that happen on rare occasion...) Share this post Link to post Share on other sites
mac.ron 2 Report post Posted April 1, 2010 :-) Thank you for your quick response! — Yes, it appears to work. For some reason I've tried the launchctl start/stop commands instead of ... load/unload as you suggested. When I used the start and stop subcommands, I received an error that there was "no such process" ... But anyway, with load and unload it works fine! Thanks again! Cheers, Ron. Share this post Link to post Share on other sites
sussox 0 Report post Posted April 1, 2010 This should have been in the user manual Share this post Link to post Share on other sites
CallMeDave 7 Report post Posted April 1, 2010 The launchctl man page has no mention of "start" or "stop" subcommands. Dave Share this post Link to post Share on other sites
sussox 0 Report post Posted April 2, 2010 I meant that it would have been nice if the whole command-line startup procedure was documented in the Retrospect Usermanual. Share this post Link to post Share on other sites
dcomiskey 0 Report post Posted April 2, 2010 Well, it shouldn't have to be if this program wasn't so unbelievably buggy..... :angryred: Share this post Link to post Share on other sites
demani 3 Report post Posted September 27, 2010 Just for completeness (and for the next person who needs to find the info)- now that it's under Roxio the new commands (reflecting the new pathname) are: sudo /bin/launchctl unload /Library/LaunchDaemons/com.roxio.launchd.retroengine.plist sudo /bin/launchctl load /Library/LaunchDaemons/com.roxio.launchd.retroengine.plist Share this post Link to post Share on other sites
fotmasta 1 Report post Posted March 10, 2015 Update. # Start Retrospect 11 Engine sudo /bin/launchctl load /Library/LaunchDaemons/com.retrospect.retroengine.plist #!/bin/sh # Stop Retrospect 11 Engine sudo /bin/launchctl unload /Library/LaunchDaemons/com.retrospect.retroengine.plist Share this post Link to post Share on other sites
rsbradfordjr 0 Report post Posted October 29, 2015 How do we modify this for Yosemite 10.10.5? Using Terminal (Computer Name "Myserver", Admin account "admin") Myserver:~ admin$ sudo /bin/launchctl unload /Library/LaunchDaemons/com.retrospect.retroengine.plist /Library/LaunchDaemons/com.retrospect.retroengine.plist: Could not find specified service Did the launchctl command structure change with 10.10.5? com.retrospect.retroengine.plist is located in /Library/LaunchDaemons/ on Myserver Share this post Link to post Share on other sites
twickland 69 Report post Posted October 29, 2015 /Library/LaunchDaemons/com.retrospect.retroengine.plist: Could not find specified service That is the output you would expect if Retrospect engine was not actually running at the time you entered the unload command. (The command lines that fotmasta cites are the same in Yosemite.) Share this post Link to post Share on other sites
rsbradfordjr 0 Report post Posted October 29, 2015 Tim, Thanks for the quick response. Share this post Link to post Share on other sites
rsbradfordjr 0 Report post Posted October 29, 2015 Just validated that both load and unload commands that fotmasta cites work correctly in Yosemite 10.10.5 Share this post Link to post Share on other sites