#!/bin/sh

if [ "$1" = "configure" ]; then
    echo "Reloading systemd daemon"
    systemctl daemon-reload
    echo "Enabling dogecoind.service"
    systemctl enable dogecoind.service
    echo "Starting dogecoind.service"
    systemctl start dogecoind.service || >&2 echo "Failed to start dogecoind.service - missing config?"
fi

