Service file for Zeronet
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
[Unit] | |
Description=Decentralized websites using Bitcoin crypto and the BitTorrent network | |
[Service] | |
User=zeronet | |
Group=zeronet | |
WorkingDirectory=/opt/zeronet | |
LimitNOFILE=8192 | |
ExecStart=/opt/zeronet/zeronet --config_file /etc/zeronet.conf | |
Restart=on-failure | |
[Install] | |
WantedBy=default.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
#!/bin/bash | |
cd /opt/zeronet && { | |
export PYTHONIOENCODING='UTF-8' | |
export PYTHONUNBUFFERED='x' | |
export PYTHONOPTIMIZE='x' | |
export PYTHONHASHSEED='random' | |
if [[ -f venv/bin/activate ]]; then | |
echo "Activating virtualenv" | |
source venv/bin/activate | |
fi | |
exec -a zeronet python2 zeronet.py --tor disable "${@}" | |
} | |
sleep 1 | |
exit 1 | |
# eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment