Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wishlist: Listen to Preparefor{Sleep|Shutdown} signals #4

Open
martin9959 opened this issue Dec 2, 2018 · 3 comments
Open

Wishlist: Listen to Preparefor{Sleep|Shutdown} signals #4

martin9959 opened this issue Dec 2, 2018 · 3 comments

Comments

@martin9959
Copy link

Wouldn't it be an idea to integrate a function to listen to these signals, in order to quit properly (before the network is going down) when the system is shutting down/going to sleep? This:

https://github.com/davidn/av/blob/master/av

could probably be adapted, but I don't have enough python knowledge to do it.

@TentativeConvert
Copy link
Owner

I’m not sure I understand what you want to do. What are “these signals”, and what exactly do you mean by “close properly”? Do you want to make sure that all files get synched before your system shuts down?

@martin9959
Copy link
Author

Yes, and the connection closed. By "these signals" and "close properly" I thought of these discussions:

https://unix.stackexchange.com/questions/64151/networkmanager-disabled-network-when-sending-system-to-sleep

https://unix.stackexchange.com/questions/337853/how-can-i-trigger-a-systemd-unit-on-suspend-before-networking-is-shut-down

So my idea is that if syndicator (and unison) stop in time, I might still be able to unmount the (network-mounted) backup location before the network goes down.

@TentativeConvert
Copy link
Owner

I've never had any issues with unison being interrupted by a system shutdown, and I’m afraid I don’t have any time on my hands to implement the feature requested. I’ll leave this issue open -- if anyone wants to work on this, please go ahed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants