2017-12-03 10:06:55 +01:00
|
|
|
[Unit]
|
2022-04-16 00:14:08 +02:00
|
|
|
Description=Git Daemon
|
2017-12-03 10:06:55 +01:00
|
|
|
|
|
|
|
[Service]
|
2021-10-11 15:30:25 +02:00
|
|
|
# added automatically, for details please see
|
|
|
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
|
|
ProtectSystem=full
|
|
|
|
PrivateDevices=true
|
|
|
|
ProtectHostname=true
|
|
|
|
ProtectClock=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelLogs=true
|
|
|
|
ProtectControlGroups=true
|
|
|
|
RestrictRealtime=true
|
|
|
|
# end of automatic additions
|
2017-12-03 10:06:55 +01:00
|
|
|
EnvironmentFile=-/etc/sysconfig/git-daemon
|
2020-04-19 21:35:26 +02:00
|
|
|
ExecStart=/bin/bash -c 'exec git daemon --reuseaddr --base-path=$${GIT_DAEMON_BASE_PATH:-/srv/git/} --user=$${GIT_DAEMON_USER:-git-daemon} --group=$${GIT_DAEMON_GROUP:-nogroup} $GIT_DAEMON_ARGS'
|
2017-12-03 10:06:55 +01:00
|
|
|
|
|
|
|
Restart=always
|
|
|
|
RestartSec=500ms
|
|
|
|
|
|
|
|
SyslogIdentifier=git-daemon
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|