-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
always use latest systemd service file in deb package
- Loading branch information
Showing
16 changed files
with
72 additions
and
16 deletions.
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 +1 @@ | ||
10 | ||
12 |
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 +1 @@ | ||
10 | ||
12 |
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 +1 @@ | ||
10 | ||
12 |
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 +1 @@ | ||
10 | ||
12 |
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,3 +1,2 @@ | ||
usr/bin/g3keymess | ||
usr/bin/g3keymess-ctl | ||
lib/systemd/system/ |
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,21 @@ | ||
[Unit] | ||
Description=G3 Keyless Server %i | ||
After=syslog.target network-online.target | ||
Wants=network-online.target | ||
|
||
[Service] | ||
Type=simple | ||
RuntimeDirectory=g3keymess | ||
RuntimeDirectoryPreserve=yes | ||
EnvironmentFile=-/etc/g3keymess/%i/env | ||
ExecStart=/usr/bin/g3keymess -c /etc/g3keymess/%i/ --control-dir $RUNTIME_DIRECTORY -s -G %i | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
ExecStop=-/usr/bin/g3keymess-ctl --control-dir $RUNTIME_DIRECTORY -G %i -p $MAINPID offline | ||
KillMode=none | ||
Restart=on-success | ||
SuccessExitStatus=SIGQUIT | ||
TimeoutStartSec=10 | ||
LimitNOFILE=10485760 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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 |
---|---|---|
|
@@ -17,13 +17,11 @@ override_dh_auto_build: | |
cargo build --frozen --offline --profile $(BUILD_PROFILE) \ | ||
--no-default-features --features $(SSL_FEATURE), \ | ||
--package g3keymess --package g3keymess-ctl | ||
sh $(PACKAGE_NAME)/service/generate_systemd.sh | ||
|
||
override_dh_auto_install: | ||
dh_auto_install | ||
install -m 755 -D target/$(BUILD_PROFILE)/g3keymess debian/tmp/usr/bin/g3keymess | ||
install -m 755 -D target/$(BUILD_PROFILE)/g3keymess-ctl debian/tmp/usr/bin/g3keymess-ctl | ||
install -m 644 -D $(PACKAGE_NAME)/service/[email protected] debian/tmp/lib/systemd/system/[email protected] | ||
|
||
override_dh_installchangelogs: | ||
dh_installchangelogs $(PACKAGE_NAME)/CHANGELOG | ||
|
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 +1 @@ | ||
10 | ||
12 |
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 +1 @@ | ||
10 | ||
12 |
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 |
---|---|---|
|
@@ -2,4 +2,3 @@ usr/bin/g3proxy | |
usr/bin/g3proxy-ctl | ||
usr/bin/g3proxy-ftp | ||
usr/bin/g3proxy-lua | ||
lib/systemd/system/ |
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,22 @@ | ||
[Unit] | ||
Description=G3 Proxy %i | ||
After=syslog.target network-online.target | ||
Wants=network-online.target | ||
|
||
[Service] | ||
Type=simple | ||
RuntimeDirectory=g3proxy | ||
RuntimeDirectoryPreserve=yes | ||
EnvironmentFile=-/etc/g3proxy/%i/env | ||
ExecStart=/usr/bin/g3proxy -c /etc/g3proxy/%i/ --control-dir $RUNTIME_DIRECTORY -s -G %i | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
ExecStop=/usr/bin/g3proxy-ctl --control-dir $RUNTIME_DIRECTORY -G %i -p $MAINPID offline | ||
KillMode=none | ||
Restart=on-failure | ||
SuccessExitStatus=SIGQUIT | ||
RestartPreventExitStatus=255 | ||
TimeoutStartSec=10 | ||
LimitNOFILE=10485760 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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 |
---|---|---|
|
@@ -20,15 +20,13 @@ override_dh_auto_build: | |
--no-default-features --features $(LUA_FEATURE),$(SSL_FEATURE),rustls-ring,quic,$(CARES_FEATURE),hickory \ | ||
--package g3proxy --package g3proxy-ctl --package g3proxy-lua | ||
cargo build --frozen --profile $(BUILD_PROFILE) --package g3proxy-ftp | ||
sh $(PACKAGE_NAME)/service/generate_systemd.sh | ||
|
||
override_dh_auto_install: | ||
dh_auto_install | ||
install -m 755 -D target/$(BUILD_PROFILE)/g3proxy debian/tmp/usr/bin/g3proxy | ||
install -m 755 -D target/$(BUILD_PROFILE)/g3proxy-ctl debian/tmp/usr/bin/g3proxy-ctl | ||
install -m 755 -D target/$(BUILD_PROFILE)/g3proxy-ftp debian/tmp/usr/bin/g3proxy-ftp | ||
install -m 755 -D target/$(BUILD_PROFILE)/g3proxy-lua debian/tmp/usr/bin/g3proxy-lua | ||
install -m 644 -D $(PACKAGE_NAME)/service/[email protected] debian/tmp/lib/systemd/system/[email protected] | ||
|
||
override_dh_installchangelogs: | ||
dh_installchangelogs $(PACKAGE_NAME)/CHANGELOG | ||
|
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 +1 @@ | ||
10 | ||
12 |
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,3 +1,2 @@ | ||
usr/bin/g3tiles | ||
usr/bin/g3tiles-ctl | ||
lib/systemd/system/ |
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,22 @@ | ||
[Unit] | ||
Description=G3 Reverse Proxy %i | ||
After=syslog.target network-online.target | ||
Wants=network-online.target | ||
|
||
[Service] | ||
Type=simple | ||
RuntimeDirectory=g3tiles | ||
RuntimeDirectoryPreserve=yes | ||
EnvironmentFile=-/etc/g3tiles/%i/env | ||
ExecStart=/usr/bin/g3tiles -c /etc/g3tiles/%i/ --control-dir $RUNTIME_DIRECTORY -s -G %i | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
ExecStop=/usr/bin/g3tiles-ctl --control-dir $RUNTIME_DIRECTORY -G %i -p $MAINPID offline | ||
KillMode=none | ||
Restart=on-failure | ||
SuccessExitStatus=SIGQUIT | ||
RestartPreventExitStatus=255 | ||
TimeoutStartSec=10 | ||
LimitNOFILE=10485760 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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 |
---|---|---|
|
@@ -17,13 +17,11 @@ override_dh_auto_build: | |
cargo build --frozen --offline --profile $(BUILD_PROFILE) \ | ||
--no-default-features --features $(SSL_FEATURE),rustls-ring,quic \ | ||
--package g3tiles --package g3tiles-ctl | ||
sh $(PACKAGE_NAME)/service/generate_systemd.sh | ||
|
||
override_dh_auto_install: | ||
dh_auto_install | ||
install -m 755 -D target/$(BUILD_PROFILE)/g3tiles debian/tmp/usr/bin/g3tiles | ||
install -m 755 -D target/$(BUILD_PROFILE)/g3tiles-ctl debian/tmp/usr/bin/g3tiles-ctl | ||
install -m 644 -D $(PACKAGE_NAME)/service/[email protected] debian/tmp/lib/systemd/system/[email protected] | ||
|
||
override_dh_installchangelogs: | ||
dh_installchangelogs $(PACKAGE_NAME)/CHANGELOG | ||
|