I dont think systemd will expand the ~
, try replacing the ExecStart=/bin/bash ~/.local/bin/ocamlfuseStartup.sh
line with ExecStart=/bin/bash %h/.local/bin/ocamlfuseStartup.sh
, this will expand to your home directory, if its still giving a not found error, try running which google-drive-ocamlfuse
in a terminal and make sure the path is correct
It looks like its creating a new process and going in the background and systemd cant track it anymore, so it thinks that its exited and tries restarting. I took a link Oscar sent, and I saw that there is a systemd service and the
Type
is set toforking
, I think this could solve the problem, they also have anExecStop
line, id set it toExecStop=fusermount -u %h/googledrive
so it will unmount properly whenever you manually stop the service. So try settingType=forking
, and adding theExecStop
line, hopefully this will stop systemd from restarting it when it hasnt actually exited