summaryrefslogtreecommitdiffstats
path: root/roles/git
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-09-15 18:14:48 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-09-15 18:14:48 +0200
commit0eaba61e82326cbfb9a1a1c6d96f573837df98a9 (patch)
tree7e99e92acca9bd6dfd117d838bdc8fa40754fa72 /roles/git
parent0f57d8f477bfe6d0ffd0d18e8c01f0aa141cdc2d (diff)
systemd: Auto-restart the gitweb service.
Diffstat (limited to 'roles/git')
-rw-r--r--roles/git/files/etc/gitweb.conf2
-rw-r--r--roles/git/files/lib/systemd/system/gitweb.service1
2 files changed, 2 insertions, 1 deletions
diff --git a/roles/git/files/etc/gitweb.conf b/roles/git/files/etc/gitweb.conf
index 8c1dd61..0d667b7 100644
--- a/roles/git/files/etc/gitweb.conf
+++ b/roles/git/files/etc/gitweb.conf
@@ -19,7 +19,7 @@ $projects_list = "/var/lib/gitolite/projects.list";
#$export_ok = "git-daemon-export-ok";
# stylesheet to use
-push @stylesheets, "static/gitweb.css";
+#push @stylesheets, "static/gitweb.css";
# javascript code for gitweb
$javascript = "static/gitweb.js";
diff --git a/roles/git/files/lib/systemd/system/gitweb.service b/roles/git/files/lib/systemd/system/gitweb.service
index 05821ce..3ba1cc8 100644
--- a/roles/git/files/lib/systemd/system/gitweb.service
+++ b/roles/git/files/lib/systemd/system/gitweb.service
@@ -9,6 +9,7 @@ User=gitweb
Group=gitweb
Environment=SCRIPT_FILENAME=/usr/lib/cgi-bin/gitweb-wrapper.fcgi
ExecStart=/usr/lib/cgi-bin/gitweb-wrapper.fcgi
+Restart=on-failure
[Install]
WantedBy=multi-user.target