Skip to content

Commit

Permalink
Merge pull request #924 from reitzig/patch-1
Browse files Browse the repository at this point in the history
systemd config file uses full path to git binary.
  • Loading branch information
ben authored Nov 13, 2017
2 parents eec6e0d + ce3332b commit 6e09183
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 6e09183

Please sign in to comment.