astrada / google-drive-ocamlfuse

FUSE filesystem over Google Drive
https://astrada.github.io/google-drive-ocamlfuse/
MIT License
5.42k stars 346 forks source link

Question: how to configure systemd to unload/load service on suspend/resume #859

Open cmt29 opened 2 months ago

cmt29 commented 2 months ago

Sorry if this is wrong place to ask this.

I have followed steps to automount via systemd --user. However, computer won't suspend unless I manually stop service. How do I automate this using systemd? Do I need a separate systemd service, or can I do it via editing the user unit file documented here: [https://github.com/astrada/google-drive-ocamlfuse/wiki/Automounting#user-unit] (https://github.com/astrada/google-drive-ocamlfuse/wiki/Automounting#user-unit)

Thanks.