Last active
July 19, 2020 03:01
-
-
Save tobiasstrebitzer/47164af54d860fe38013d1cdefb6e6f8 to your computer and use it in GitHub Desktop.
Prsym Systemd Services
This file contains hidden or 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
# /etc/systemd/system/prysm-beacon-chain.service | |
[Unit] | |
Description=Prysm Beacon Chain | |
After=syslog.target network.target | |
[Service] | |
Type=simple | |
User={USERNAME} | |
Group={GROUP} | |
UMask=0002 | |
WorkingDirectory=/home/{USERNAME} | |
ExecStart=/home/{USERNAME}/bin/prysm beacon-chain | |
RestartSec=10 | |
Restart=on-failure | |
StandardOutput=syslog | |
StandardError=syslog | |
SyslogIdentifier=prysm-beacon-chain | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or 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
# /etc/systemd/system/prysm-slasher.service | |
[Unit] | |
Description=Prysm Slasher | |
After=syslog.target network.target | |
[Service] | |
Type=simple | |
User={USERNAME} | |
Group={GROUP} | |
UMask=0002 | |
WorkingDirectory=/home/{USERNAME} | |
ExecStart=/home/{USERNAME}/bin/prysm slasher | |
RestartSec=10 | |
Restart=on-failure | |
StandardOutput=syslog | |
StandardError=syslog | |
SyslogIdentifier=prysm-slasher | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or 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 | |
# Enable Services | |
sudo systemctl enable /etc/systemd/system/prysm-beacon-chain.service | |
sudo systemctl enable /etc/systemd/system/prysm-validator.service | |
sudo systemctl enable /etc/systemd/system/prysm-slasher.service | |
# Start Services | |
sudo service prysm-beacon-chain start | |
sudo service prysm-validator start | |
sudo service prysm-slasher start |
This file contains hidden or 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
# /etc/systemd/system/prysm-validator.service | |
[Unit] | |
Description=Prysm Validator | |
After=syslog.target network.target | |
[Service] | |
Type=simple | |
User={USERNAME} | |
Group={GROUP} | |
UMask=0002 | |
WorkingDirectory=/home/{USERNAME} | |
ExecStart=/home/{USERNAME}/bin/prysm validator --password={PASSWORD} | |
RestartSec=10 | |
Restart=on-failure | |
StandardOutput=syslog | |
StandardError=syslog | |
SyslogIdentifier=prysm-validator | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment