diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-02-02 13:34:47 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-11-30 21:09:29 +0800 |
commit | 9934dd538b0ce116e3b1600272cb46369b082246 (patch) | |
tree | 2f28c6c362201151eaf8218e566479ed7eb72070 /git/git-daemon.service |
init commit
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 | ||