matteoserva / MegaFuse

MEGA client for linux, based on FUSE
Other
250 stars 80 forks source link

How to Return to Shell? #72

Open ghost opened 7 years ago

ghost commented 7 years ago

After firing up MegaFuse manually, it never returns to shell prompt. How can I get it to do this? I am simply left with: http://prntscr.com/enmhl3 hanging in the wind....

Also, wanted to note that using it as a service does not work.... it attempts to restart & restart & restart, and finally errors out with:

Mar 23 14:50:10 hosting systemd[1]: megafuse.service: Start request repeated too quickly. Mar 23 14:50:10 hosting systemd[1]: Failed to start Mount your MEGA cloud storage with fuse.

trainingday01 commented 7 years ago

It is not supposed to return to the prompt, it's a process and it works while it's running (it's not hanging as you think from the screenshot). You have two ways to make it work in the background.

Simple solution (if you are not interested in coming back to the process, just want it to keep running): Megafuse &

Powerful solution (allows you to reconnect to the process if it is interactive): screen Also consider the newer alternative to screen, tmux.

After that you can simply access your mountpoint folder (/media/OffsiteBackups) and do whatever you want.

tYYGH commented 7 years ago

You may also consider writing a systemd unit file for MegaFuse. Systemd handles background handling, restart-on-failure, and a lot more.

Rand-Hunt commented 7 years ago

I'm also getting the following error on my systemd service file.

 hosting systemd[1]: megafuse.service: Start request repeated too quickly.
 hosting systemd[1]: Failed to start Mount your MEGA cloud storage with fuse.