diff --git a/book/04-git-server/sections/git-daemon.asc b/book/04-git-server/sections/git-daemon.asc index 8faf40c5d..d8ed8872e 100644 --- a/book/04-git-server/sections/git-daemon.asc +++ b/book/04-git-server/sections/git-daemon.asc @@ -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 @@ -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`.