28 lines
846 B
SYSTEMD
28 lines
846 B
SYSTEMD
|
|
# Example unit — legacy OP Stack op-geth execution client.
|
||
|
|
# Prefer op-reth for new deployments; op-geth is approaching end-of-support.
|
||
|
|
# Install: copy to /etc/systemd/system/, edit paths, `systemctl daemon-reload && systemctl enable --now ...`
|
||
|
|
#
|
||
|
|
# Replace:
|
||
|
|
# /opt/op-stack — install root
|
||
|
|
# opuser — unprivileged user
|
||
|
|
# /etc/op-stack/sequencer.env — EnvironmentFile (RPC URLs, JWT, flags; no keys in world-readable files)
|
||
|
|
|
||
|
|
[Unit]
|
||
|
|
Description=OP Stack op-geth (legacy) — example
|
||
|
|
After=network-online.target
|
||
|
|
Wants=network-online.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=simple
|
||
|
|
User=opstack
|
||
|
|
Group=opstack
|
||
|
|
WorkingDirectory=/opt/op-stack
|
||
|
|
EnvironmentFile=-/etc/op-stack/sequencer.env
|
||
|
|
# ExecStart=/opt/op-stack/bin/geth ... (legacy fallback only; prefer op-reth)
|
||
|
|
ExecStart=/bin/false
|
||
|
|
Restart=on-failure
|
||
|
|
RestartSec=10
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|