gitforgefs/contrib/systemd/README.md

16 lines
1.0 KiB
Markdown
Raw Permalink Normal View History

2024-08-14 03:45:09 +00:00
This unit file allows you to automatically start gitforgefs as a systemd unit.
2021-03-22 01:52:22 +00:00
2024-08-14 03:45:09 +00:00
## Setup
1. Install gitforgefs
2. Copy **gitforgefs@.service** into **$HOME/.config/systemd/user**. Create the folder if it does not exists.
``` sh
mkdir -p $HOME/.config/systemd/user
2024-08-15 02:02:54 +00:00
curl -o $HOME/.config/systemd/user/gitforgefs@.service https://raw.githubusercontent.com/badjware/gitforgefs/dev/contrib/systemd/gitforgefs%40.service
2024-08-14 03:45:09 +00:00
```
3. Reload systemd: `systemctl --user daemon-reload`
2021-03-22 01:52:22 +00:00
## Usage
2024-08-14 03:45:09 +00:00
1. Create your gitforgefs config file in **$HOME/.config/gitforgefs** eg: **$HOME/.config/gitforgefs/gitlab.com.yaml**. Make sure the config file name ends with **.yaml** and a mountpoint is configured in the file.
2. Start your service with `systemctl --user start gitforgefs@<name of your config>.service`. eg: `systemctl --user start gitforgefs@gitlab.com.service`. Omit the **.yaml** extension.
3. Enable your service to start on login with `systemctl --user enable gitforgefs@<name of your config>.service`. eg: `systemctl --user enable gitforgefs@gitlab.com.service`