You are not logged in.
Pages: 1
I am using connman which does not automatically populate resolve.conf with my desired dnses. So I turned to openresolv. The problem is that when I suspend and resume, /etc/resolve.conf gets reset and openresolve does not repopulate it again.
So I wrote a systemd service to run a script which should take care of it:
/etc/systemd/system/root-resume.service
[Unit]
Description=Local system resume actions
After=suspend.target
[Service]
Type=simple
ExecStart=/home/smith/.scripts/run_on_resume
[Install]
WantedBy=suspend.targetand the executable /home/smith/.scripts/run_on_resume
goes like that
sleep 30 ; resolvconf -uIf I run it manually, it works. But if I leave it to systemd – it doesn't.
To see if it runs with another command, I changed the content of "run_on_resume" to something like
sleep 30 ; touch /root/testand it does work.
So I don't know what's the problem here...
Offline
Pages: 1