I would like a script that would cause my Dropbox and Mega cloud folders to synch with the cloud, then shut down. The best I’ve come up with is
#!/bin/bash
megasync
dropbox start -i
shutdown
This starts my cloud software, which usually synchs the minute it is started. I wonder if they’d start some background stuff that send the computer into a loop before shutdown. Anyone know? have suggestions?
I’m running Linux Mint 2.1 Cinnamon on a desktop and a laptop. TIA.
Run up a VM and try the script for a couple of files to sync if you don’t want to affect your main machine, always a safer way to do something you’re not sure about.
In my MATE I’d use mate-session-save --shutdown-dialog
This causes a normal shutdown, just like I had press shutdown button.
I believe the Cinnamon equivalent would be: cinnamon-session-quit --power-off
Yes, kill -9 is literally killing the process and one should do that only in emergencies. If you regularly shutdown something, you should do that as gracefully as possible.