-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added building deb-linux-package in makefile (#364)
* Added building deb-linux-package in makefile * Added building deb-package for gowaves node * Changed address for wmd * Changed interval from 1 to 10 for wmd * added building testnet-node * Fixed makefile * changed readme for wmd and node as systemd service * changed readme, correct name of binary file * Debian package file templates moved to separate folder * Fixed errors in building Co-authored-by: Dolgavin Alexandr <[email protected]> Co-authored-by: Alexey Kiselev <[email protected]>
- Loading branch information
1 parent
d7cc53e
commit a7fbfd7
Showing
7 changed files
with
103 additions
and
9 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
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
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,8 @@ | ||
Package: PACKAGE | ||
Version: DEB_VER | ||
Section: utils | ||
Priority: standard | ||
Maintainer: waves.tech | ||
Description: DESCRIPTION VERSION | ||
Architecture: amd64 | ||
Depends: bash |
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,14 @@ | ||
#!/bin/bash | ||
sudo mkdir /var/log/PACKAGE | ||
sudo chown syslog EXECUTABLE | ||
sudo useradd NAME -s /sbin/nologin -M | ||
sudo mv PACKAGE.service /lib/systemd/system/ | ||
sudo chmod 755 /lib/systemd/system/PACKAGE.service | ||
sudo mkdir /usr/share/PACKAGE/ | ||
sudo chown NAME:NAME /usr/share/PACKAGE | ||
sudo mkdir /var/lib/PACKAGE | ||
sudo chown NAME:NAME /var/lib/PACKAGE | ||
sudo cp EXECUTABLE /usr/share/PACKAGE/ | ||
EXTRAS | ||
sudo systemctl enable PACKAGE.service | ||
sudo systemctl start PACKAGE.service |
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,2 @@ | ||
#!/bin/bash | ||
sudo rm -f /usr/share/PACKAGE/* |
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,24 @@ | ||
[Unit] | ||
Description=DESCRIPTION VERSION | ||
ConditionPathExists=/usr/share/PACKAGE | ||
After=network.target | ||
|
||
[Service] | ||
Type=simple | ||
User=NAME | ||
Group=NAME | ||
LimitNOFILE=1024 | ||
Restart=on-failure | ||
RestartSec=60 | ||
WorkingDirectory=/usr/share/PACKAGE | ||
PermissionsStartOnly=true | ||
ExecStart=/usr/share/PACKAGE/EXECUTABLE PARAMS | ||
ExecStartPre=/bin/mkdir -p /var/log/PACKAGE | ||
ExecStartPre=/bin/chown syslog:adm /var/log/PACKAGE | ||
ExecStartPre=/bin/chmod 755 /var/log/PACKAGE | ||
StandardOutput=syslog | ||
StandardError=syslog | ||
SyslogIdentifier=PACKAGE | ||
|
||
[Install] | ||
WantedBy=multi-user.target |