Create the unit file as nano ~/.config/systemd/user/google-drive-ocamlfuse.service
(be sure to replace instances of {label} and {mountpoint}):
[Unit]
Description=FUSE filesystem over Google Drive
After=network.target
[Service]
ExecStart=google-drive-ocamlfuse -label {label} {mountpoint}
ExecStop=fusermount -u {mountpoint}
Restart=always
Type=forking
[Install]
WantedBy=default.target
To automount on boot:
systemctl enable --user google-drive-ocamlfuse.service
To mount drive:
systemctl start --user google-drive-ocamlfuse.service
To unmount drive:
systemctl stop --user google-drive-ocamlfuse.service
More info can be found here: https://github.com/astrada/google-drive-ocamlfuse/wiki/Automounting