(30-Dec-2024, 09:09 AM)Snoopy8 Wrote:This looks correct, but this works for me. I'm curious, are you using the domain name (aka fully qualified domain name FQDN) or the IP address of your NAS? I always used IP and that works. Can you confirm if you're using IP or FQDN? Also, what NAS are you using?Code:[Unit]
Description=Snakeoil RestAPI server
Wants=network-online.target
After=network.target network-online.target
[Service]
User=root
WorkingDirectory=/var/www/
ExecStart=/usr/local/bin/snakeoil-server.sh
# optional items below
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target
The fact that it works after and not during boot up means Snakeoil REST is starting too early before something is ready but right now it's hard to pin down what that service is.
Edit: I tried switching to FQDN and it still works.