Run RepoFS as a background process
vitsalis opened this issue · comments
RepoFS is currently a running process meaning that if the user running the process logs out the repository is unmounted.
This can currently be solved with nohup(1) and the shell's &
. However, background operation should be the default if RepoFS is provided in a command such as mount_repofs.
I agree. Currently, if RepoFS is installed via setup.py
it adds a command repofs
to the shell that's similar to running RepoFS manually.
I suggest we add a parameter to the main
function, that differentiates between running as a command line tool and running manually as a python script (for development purposes).
I think you can just look at argv[0]. But daemon commands typically provide -d flag which negates the auto-backgrounding and enables further debugging message logging.
Enabled running in the background in 4d9f6c7
We can add support for debugging messages in another issue.