Return ckpool.service to dynamic variables

This commit is contained in:
2025-11-08 11:37:38 -05:00
parent 2d7849ad8f
commit 1affab4010

View File

@ -192,21 +192,21 @@ EOF
chown -R "$CKPOOL_USER":"$CKPOOL_USER" "$APP_ROOT"
# make ckpmsg available to PHP
ln -sf /opt/btc-solo/ckpool/src/ckpmsg /usr/local/bin/ckpmsg
ln -sf ${APP_ROOT}/${CKPOOL_USER}/src/ckpmsg /usr/local/bin/ckpmsg
cat > /etc/systemd/system/ckpool.service <<'EOF'
cat > /etc/systemd/system/ckpool.service <<EOF
[Unit]
Description=ckpool solo mining server
After=network.target bitcoind.service
Wants=bitcoind.service
[Service]
User=ckpool
Group=ckpool
RuntimeDirectory=ckpool
User=${CKPOOL_USER}
Group=${CKPOOL_USER}
RuntimeDirectory=${CKPOOL_USER}
RuntimeDirectoryMode=0770
WorkingDirectory=/opt/btc-solo/ckpool
ExecStart=/opt/btc-solo/ckpool/src/ckpool -c /opt/btc-solo/conf/ckpool.conf -B -s /run/ckpool
WorkingDirectory=${APP_ROOT}/${CKPOOL_USER}
ExecStart=${APP_ROOT}/${CKPOOL_USER}/src/ckpool -c ${APP_ROOT}/conf/ckpool.conf -B -s /run/${CKPOOL_USER}
Restart=on-failure
[Install]