{"action":"created","issue":{"url":"https://api.github.com/repos/graysky2/profile-sync-daemon/issues/211","repository_url":"https://api.github.com/repos/graysky2/profile-sync-daemon","labels_url":"https://api.github.com/repos/graysky2/profile-sync-daemon/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/graysky2/profile-sync-daemon/issues/211/comments","events_url":"https://api.github.com/repos/graysky2/profile-sync-daemon/issues/211/events","html_url":"https://github.com/graysky2/profile-sync-daemon/issues/211","id":259593168,"number":211,"title":"Feature request: allow specifying a directory where crashrecovery backups will be stored","user":{"login":"Busimus","id":4591884,"avatar_url":"https://avatars2.githubusercontent.com/u/4591884?v=4","gravatar_id":"","url":"https://api.github.com/users/Busimus","html_url":"https://github.com/Busimus","followers_url":"https://api.github.com/users/Busimus/followers","following_url":"https://api.github.com/users/Busimus/following{/other_user}","gists_url":"https://api.github.com/users/Busimus/gists{/gist_id}","starred_url":"https://api.github.com/users/Busimus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Busimus/subscriptions","organizations_url":"https://api.github.com/users/Busimus/orgs","repos_url":"https://api.github.com/users/Busimus/repos","events_url":"https://api.github.com/users/Busimus/events{/privacy}","received_events_url":"https://api.github.com/users/Busimus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-09-21T18:41:40Z","updated_at":"2017-09-23T20:27:22Z","closed_at":"2017-09-23T19:09:55Z","author_association":"NONE","body":"I recently encountered a very niche issue that has to do with ungraceful resync.\r\n\r\nLong story short: my browser profile is big, my system SSD is slow, whenever ungraceful state is detected it takes a long time for psd to create a backup. I wouldn't mind, but systemd has a 25 second limit on services that start at user login.\r\n\r\nSo if I log in while in ungraceful state, then my system hangs for 25 seconds on a login screen, after which systemd does the following:\r\n1. Kills psd resync process, which leaves me with an incomplete `crashrecovery` backup,\r\n2. Invalidates my user session, which breaks the rest of the system in peculiar ways.\r\n\r\nThe only way around these painful consequences is logging in as root, disabling the `psd.service`, after which I can safely log in in as my user and start `psd.service` manually.\r\nIt's not a great solution.\r\n\r\nBut I have a very fast hard drive. If you could add the option in the config file to specify the directory in which `crashrecovery` will be created, then I could point that to my hard drive, which will have no problem writing a full `crashrecovery` folder in under 25 seconds.\r\n\r\nUnless you have a better proposition on how to solve this problem, of course. Because this is the best one I've got.\r\n\r\nEDIT: Just realized this issue is basically a copy of #197. Not really, since this solution wouldn't help people who don't have an option of fast storage, but it could help some."},"comment":{"url":"https://api.github.com/repos/graysky2/profile-sync-daemon/issues/comments/331667883","html_url":"https://github.com/graysky2/profile-sync-daemon/issues/211#issuecomment-331667883","issue_url":"https://api.github.com/repos/graysky2/profile-sync-daemon/issues/211","id":331667883,"user":{"login":"Busimus","id":4591884,"avatar_url":"https://avatars2.githubusercontent.com/u/4591884?v=4","gravatar_id":"","url":"https://api.github.com/users/Busimus","html_url":"https://github.com/Busimus","followers_url":"https://api.github.com/users/Busimus/followers","following_url":"https://api.github.com/users/Busimus/following{/other_user}","gists_url":"https://api.github.com/users/Busimus/gists{/gist_id}","starred_url":"https://api.github.com/users/Busimus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Busimus/subscriptions","organizations_url":"https://api.github.com/users/Busimus/orgs","repos_url":"https://api.github.com/users/Busimus/repos","events_url":"https://api.github.com/users/Busimus/events{/privacy}","received_events_url":"https://api.github.com/users/Busimus/received_events","type":"User","site_admin":false},"created_at":"2017-09-23T20:27:22Z","updated_at":"2017-09-23T20:27:22Z","author_association":"NONE","body":"As I said in my original post, my system SSD is slow, but I have an HDD that is fast. It takes 1 second to write a 500MB profile to that HDD, as opposed to over 30 seconds in case of my SSD.\r\n\r\nSo if I could specify in the `psd.conf` that I want it to create `crashrecovery` folders on my HDD, then I will never have to worry about my profile being insanely large."}}
{"actor":{"display_login":"Busimus"}}