-
Notifications
You must be signed in to change notification settings - Fork 2
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
MasterStake Core
committed
Oct 17, 2023
1 parent
3ec3b78
commit 1af5b6a
Showing
44 changed files
with
427 additions
and
142 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
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,5 @@ | ||
# Configuration file for git-buildpackage and friends | ||
|
||
[DEFAULT] | ||
pristine-tar = True | ||
sign-tags = True |
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 @@ | ||
# Linked code is Expat - only Debian packaging is GPL-2+ | ||
masterstake-qt: possible-gpl-code-linked-with-openssl |
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,11 @@ | ||
[Protocol] | ||
exec=masterstake-qt '%u' | ||
protocol=masterstake | ||
input=none | ||
output=none | ||
helper=true | ||
listing= | ||
reading=false | ||
writing=false | ||
makedir=false | ||
deleting=false |
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 @@ | ||
usr/local/bin/masterstaked usr/bin | ||
usr/local/bin/masterstake-cli usr/bin |
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 @@ | ||
# Linked code is Expat - only Debian packaging is GPL-2+ | ||
masterstaked: possible-gpl-code-linked-with-openssl |
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 @@ | ||
debian/manpages/masterstaked.1 | ||
debian/manpages/masterstake.conf.5 |
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,63 @@ | ||
description "MasterStake Daemon" | ||
|
||
start on runlevel [2345] | ||
stop on starting rc RUNLEVEL=[016] | ||
|
||
env BITCOIND_BIN="/usr/bin/masterstaked" | ||
env BITCOIND_USER="masterstake" | ||
env BITCOIND_GROUP="masterstake" | ||
env BITCOIND_PIDDIR="/var/run/masterstaked" | ||
# upstart can't handle variables constructed with other variables | ||
env BITCOIND_PIDFILE="/var/run/masterstaked/masterstaked.pid" | ||
env BITCOIND_CONFIGFILE="/etc/masterstake/masterstake.conf" | ||
env BITCOIND_DATADIR="/var/lib/masterstaked" | ||
|
||
expect fork | ||
|
||
respawn | ||
respawn limit 5 120 | ||
kill timeout 60 | ||
|
||
pre-start script | ||
# this will catch non-existent config files | ||
# masterstaked will check and exit with this very warning, but it can do so | ||
# long after forking, leaving upstart to think everything started fine. | ||
# since this is a commonly encountered case on install, just check and | ||
# warn here. | ||
if ! grep -qs '^rpcpassword=' "$BITCOIND_CONFIGFILE" ; then | ||
echo "ERROR: You must set a secure rpcpassword to run masterstaked." | ||
echo "The setting must appear in $BITCOIND_CONFIGFILE" | ||
echo | ||
echo "This password is security critical to securing wallets " | ||
echo "and must not be the same as the rpcuser setting." | ||
echo "You can generate a suitable random password using the following" | ||
echo "command from the shell:" | ||
echo | ||
echo "bash -c 'tr -dc a-zA-Z0-9 < /dev/urandom | head -c32 && echo'" | ||
echo | ||
echo "It is also recommended that you also set alertnotify so you are " | ||
echo "notified of problems:" | ||
echo | ||
echo "ie: alertnotify=echo %%s | mail -s \"MasterStake Alert\"" \ | ||
"[email protected]" | ||
echo | ||
exit 1 | ||
fi | ||
|
||
mkdir -p "$BITCOIND_PIDDIR" | ||
chmod 0755 "$BITCOIND_PIDDIR" | ||
chown $BITCOIND_USER:$BITCOIND_GROUP "$BITCOIND_PIDDIR" | ||
chown $BITCOIND_USER:$BITCOIND_GROUP "$BITCOIND_CONFIGFILE" | ||
chmod 0660 "$BITCOIND_CONFIGFILE" | ||
end script | ||
|
||
exec start-stop-daemon \ | ||
--start \ | ||
--pidfile "$BITCOIND_PIDFILE" \ | ||
--chuid $BITCOIND_USER:$BITCOIND_GROUP \ | ||
--exec "$BITCOIND_BIN" \ | ||
-- \ | ||
-pid="$BITCOIND_PIDFILE" \ | ||
-conf="$BITCOIND_CONFIGFILE" \ | ||
-datadir="$BITCOIND_DATADIR" \ | ||
-daemon |
Oops, something went wrong.