diff options
author | binary <me@rgoncalves.se> | 2020-06-30 19:24:22 +0200 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-06-30 19:24:22 +0200 |
commit | 68c01a04cd6268c1dee66678c258cd4c240d5bb1 (patch) | |
tree | 1419eec22fa637159ba5e61ae1a6d9e11408a506 /roles/setup_git/templates | |
download | infrastructure-68c01a04cd6268c1dee66678c258cd4c240d5bb1.tar.gz |
Cleanup for public release
Diffstat (limited to 'roles/setup_git/templates')
-rw-r--r-- | roles/setup_git/templates/gitweb.service | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/roles/setup_git/templates/gitweb.service b/roles/setup_git/templates/gitweb.service new file mode 100644 index 0000000..12e1eb4 --- /dev/null +++ b/roles/setup_git/templates/gitweb.service @@ -0,0 +1,25 @@ + +# =========================================================================== # +# _ __ _ __ +# __ ______ (_) /_ ____ _(_) /_ +# / / / / __ \/ / __/ / __ `/ / __/ +# / /_/ / / / / / /__ / /_/ / / /_ +# \__,_/_/ /_/_/\__(_) \__, /_/\__/ +# /____/ +# +# =========================================================================== # + +[Unit] +Description=Gitweb interface for git repositories + +[Service] +Type=forking +User={{ git_user }} +Group={{ git_group }} +WorkingDirectory={{ git_directory_path }}/{{ git_gitweb_default_repository }} +ExecStart=/usr/bin/git instaweb --port={{ g_port_gitweb_gui }} +ExecStop=/bin/kill -s HUP $MAINPID +RuntimeDirectoryMode=0700 + +[Install] +WantedBy=default.target |