aboutsummaryrefslogtreecommitdiffstats
path: root/roles/setup_git/templates/gitweb.service
blob: 12e1eb42f95f3f6fa8d89c416318c9aefe8d958d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
remember that computers suck.