Skip to content

Commit 6e09183

Browse files
authored
Merge pull request #924 from reitzig/patch-1
systemd config file uses full path to git binary.
2 parents eec6e0d + ce3332b commit 6e09183

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

book/04-git-server/sections/git-daemon.asc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Simply place a file in `/etc/systemd/system/git-daemon.service` with these conte
3030
Description=Start Git Daemon
3131
3232
[Service]
33-
ExecStart=git daemon --reuseaddr --base-path=/srv/git/ /srv/git/
33+
ExecStart=/usr/bin/git daemon --reuseaddr --base-path=/srv/git/ /srv/git/
3434
3535
Restart=always
3636
RestartSec=500ms
@@ -47,8 +47,8 @@ WantedBy=multi-user.target
4747
----
4848

4949
You might have noticed that Git daemon is started here with `git` as both group and user.
50-
51-
Modify it to fit your needs and make sure provided user exists on the system.
50+
Modify it to fit your needs and make sure the provided user exists on the system.
51+
Also, check that the Git binary is indeed located at `/usr/bin/git` and change the path if necessary.
5252

5353
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`.
5454

0 commit comments

Comments
 (0)