1000 B
1000 B
This unit file allows you to automatically start gitlabfs as a systemd unit.
Install
- Install gitlabfs using
go get
- Run
which gitlabfs
to verify that gitlabfs is present in your PATH. if the command fail, you may need to add $HOME/go/bin to your PATH. - Copy gitlabfs@.service into ~/.config/systemd/user. Create the folder if it does not exists.
- Reload systemd:
systemctl --user daemon-reload
Usage
- Create your gitlabfs config file in ~/.config/gitlabfs eg: ~/.config/gitlabfs/gitlab.com.yaml. Make sure the config file name ends with .yaml and a mountpoint is configured in the file.
- Start your service with
systemctl --user start gitlabfs@<name of your config>.service
. eg:systemctl --user start gitlabfs@gitlab.com.service
. Omit the .yaml in the name of the service. - Enable your service start on login with
systemctl --user enable gitlabfs@<name of your config>.service
. eg:systemctl --user enable gitlabfs@gitlab.com.service