diff options
Diffstat (limited to 'git/git-daemon.service')
-rw-r--r-- | git/git-daemon.service | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/git/git-daemon.service b/git/git-daemon.service new file mode 100644 index 0000000..4641aea --- /dev/null +++ b/git/git-daemon.service | |||
@@ -0,0 +1,21 @@ | |||
1 | [Unit] | ||
2 | Description=Start Git Daemon | ||
3 | Requires=network-online.target | ||
4 | After=network-online.target | ||
5 | |||
6 | [Service] | ||
7 | ExecStart=/home/pham/git/vps/git/daemon.sh | ||
8 | WorkingDirectory=/srv/git | ||
9 | |||
10 | Restart=always | ||
11 | RestartSec=500ms | ||
12 | |||
13 | StandardOutput=syslog | ||
14 | StandardError=syslog | ||
15 | SyslogIdentifier=git-daemon | ||
16 | |||
17 | User=pham | ||
18 | Group=pham | ||
19 | |||
20 | [Install] | ||
21 | WantedBy=multi-user.target | ||