puppet-cgit/files/git-daemon.service
Clark Boylan dc7e58943d Use systemd'd git-daemon on Centos7
Centos7 is a bit more opinionated on how git-daemon should run. In
particular with selinux the git_system_t context does not have
permissions to the git_port_t port(s) because systemd is expected to do
socket activation for git-daemon.

Fix this by not fighting systemd and embracing it. Use it for socket
activation with the git-daemon process and potentially add the git
daemon port to git_port_t label if necessary.

Change-Id: Id3fadfa74261649d158f4f31879f74f83d5856a8
2015-08-28 09:31:37 -07:00

10 lines
272 B
Desktop File

[Unit]
Description=Git Repositories Server Daemon
Documentation=man:git-daemon(1)
Wants=git-daemon.socket
[Service]
User=nobody
ExecStart=-/usr/libexec/git-core/git-daemon --base-path=/var/lib/git --export-all --syslog --inetd --verbose /var/lib/git
StandardInput=socket