Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions book/04-git-server/sections/git-daemon.asc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Simply place a file in `/etc/systemd/system/git-daemon.service` with these conte
Description=Start Git Daemon

[Service]
ExecStart=git daemon --reuseaddr --base-path=/srv/git/ /srv/git/
ExecStart=/usr/bin/git daemon --reuseaddr --base-path=/srv/git/ /srv/git/

Restart=always
RestartSec=500ms
Expand All @@ -47,8 +47,8 @@ WantedBy=multi-user.target
----

You might have noticed that Git daemon is started here with `git` as both group and user.

Modify it to fit your needs and make sure provided user exists on the system.
Modify it to fit your needs and make sure the provided user exists on the system.
Also, check that the Git binary is indeed located at `/usr/bin/git` and change the path if necessary.

Finally, you'll run `systemctl enable git-daemon` to automatically start the service on boot, and can start and stop the service with, respectively, `systemctl start git-daemon` and `systemctl stop git-daemon`.

Expand Down