-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# "Makefile" for graftcp. | ||
# Copyright (C) 2016, 2018 Hmgle <[email protected]> | ||
# Copyright (C) 2016, 2018, 2020 Hmgle <[email protected]> | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
|
@@ -70,6 +70,12 @@ install_graftcp:: graftcp | |
uninstall_graftcp:: | ||
-rm -f $(DESTDIR)$(BINDIR)/graftcp | ||
|
||
install_systemd:: | ||
$(MAKE) -C graftcp-local install_systemd | ||
|
||
uninstall_systemd:: | ||
$(MAKE) -C graftcp-local uninstall_systemd | ||
|
||
install_graftcp_local:: | ||
$(MAKE) -C graftcp-local install | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Unit] | ||
Description=Translate graftcp TCP to SOCKS5 or HTTP proxy | ||
After=network.target | ||
|
||
[Service] | ||
StartLimitInterval=5 | ||
StartLimitBurst=10 | ||
ExecStart=/usr/bin/graftcp-local -config /etc/graftcp-local/graftcp-local.conf | ||
|
||
|
||
Restart=always | ||
RestartSec=120 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |