bfdb1f0946 | ||
---|---|---|
.. | ||
README.md | ||
gitlabfs@.service |
README.md
This unit file allows you to automatically start gitlabfs as a systemd unit.
Install
- Install gitlabfs using
go get
- 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