I would just throw google-drive-ocamlfuse ~/googledrive
in your .profile
, but if you want to use systemd
:
[Unit]
Description=Google drive fuse mount
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=<USER>
ExecStart=/usr/bin/google-drive-ocamlfuse /home/<USER>/googledrive
ExecStop=/usr/bin/google-drive-ocamlfuse -u /home/<USER>/googledrive
[Install]
WantedBy=multi-user.target
There’s no swap, so swappiness has no effect.