Skip to content

Commit 474b625

Browse files
committed
Misc fixes to make buildernet services work
1 parent 80f596b commit 474b625

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed

buildernet/mkosi.postinst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ mkdir -p "$SERVICE_DIR"
1818

1919
# Copy systemd service files for buildernet
2020
for service in \
21-
lighthouse reth reth-sync \
22-
rbuilder-bidding rbuilder
21+
lighthouse # reth reth-sync \
22+
# rbuilder-bidding rbuilder
2323
do
24-
# install -m 644 "services/systemd/$service.service" "$SERVICE_DIR/"
25-
echo "Skipping installation of $service"
24+
install -m 644 "services/systemd/$service.service" "$SERVICE_DIR/"
2625
done

services/bin/lighthouse-init

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ set -e
44
# Generate JWT token if it doesn't exist
55
if [ ! -f /tmp/jwt.hex ]; then
66
openssl rand -hex 32 | tr -d "\n" | tee /tmp/jwt.hex
7-
chown lighthouse:eth /tmp/jwt.hex
87
chmod 640 /tmp/jwt.hex
98
fi
109

1110
# Create and setup persistent directory
12-
mkdir -p /persistent/lighthouse
13-
chown lighthouse:eth /persistent/lighthouse
11+
mkdir -p /persistent/lighthouse

services/systemd/lighthouse.service

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ ConditionPathExists=/persistent
88
Type=exec
99
User=lighthouse
1010
Group=eth
11-
WorkingDirectory=/persistent/lighthouse
12-
Environment=HOME=/persistent/lighthouse
1311
ExecStartPre=/usr/bin/lighthouse-init
1412
ExecStart=/usr/bin/lighthouse bn \
1513
--eth1 \

services/systemd/rbuilder.service

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ ConditionPathExists=/persistent
77
Type=exec
88
User=rbuilder
99
Group=eth
10-
WorkingDirectory=/var/run/rbuilder
1110
ExecStartPre=/bin/bash /usr/bin/rbuilder-init.sh
1211
ExecStart=/usr/bin/bwrap \
1312
--ro-bind /usr /usr \

services/systemd/reth.service

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ ConditionPathExists=/persistent
88
[Service]
99
User=reth
1010
Group=eth
11-
WorkingDirectory=/persistent/reth
1211
ExecStart=/usr/bin/reth node \
1312
--full \
1413
--datadir "/persistent/reth" \

0 commit comments

Comments
 (0)