-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standard x86 linux install service will not start on boot #153
Comments
Erm, is your network interface actually called 'wan'? That's usually an
openwrt thing...
|
yes, i renamed the interface to wan using systemd link file in /etc/systemd/network [Match] [Link] |
Hmm, what's the output of:
systemctl | grep wan
on your system?
|
sudo systemctl | grep wan |
Right, could you try editing the unit file to replace this line:
WantedBy=sys-devices-virtual-net-%i.device
with
WantedBy=sys-subsystem-net-devices-%i.device
(disable the unit first, then edit it, then do 'systemctl
daemon-reload', then re-enable)
and see if that helps?
|
The post above is with the script active after manually start. This is what it looks like on reboot before starting the script. sudo systemctl | grep wan |
I made the change and ran sudo systemctl enable sqm@wan I rebooted and ran systemctl status sqm@wan: [sadkisson@router ~]$ sudo systemctl status sqm@wan ● [email protected] - SQM scripts for iface wan Oct 20 21:55:40 router systemd[1]: Starting SQM scripts for iface wan... That appears to have fixed it! Thank you! |
I am using this script on a x86 linux install with systemd. I cannot get the script to auto start on boot.
sudo systemctl enable sqm@wan
Created symlink /etc/systemd/system/sys-devices-virtual-net-wan.device.wants/[email protected] → /usr/lib/systemd/system/[email protected].
Unit /usr/lib/systemd/system/[email protected] is added as a dependency to a non-existent unit sys-devices-virtual-net-wan.device.
When I check the status after rebooting:
sudo systemctl status sqm@wan
○ [email protected] - SQM scripts for iface wan
Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; preset: disabled)
Active: inactive (dead)
When I start manually after booting the script works:
sudo systemctl start sqm@wan
[email protected] - SQM scripts for iface wan
Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; preset: disabled)
Active: active (exited) since Thu 2022-10-20 21:14:19 UTC; 5s ago
Process: 542 ExecStart=/usr/lib/sqm/start-sqm (code=exited, status=0/SUCCESS)
Main PID: 542 (code=exited, status=0/SUCCESS)
CPU: 370ms
Oct 20 21:14:19 router systemd[1]: Starting SQM scripts for iface wan...
Oct 20 21:14:19 router start-sqm[542]: Starting SQM script: piece_of_cake.qos on wan, in: 50000 Kbps, out: 9500 Kbps
Oct 20 21:14:19 router start-sqm[542]: piece_of_cake.qos was started on wan successfully
Oct 20 21:14:19 router systemd[1]: Finished SQM scripts for iface wan.
Thanks for making this, it works great!
The text was updated successfully, but these errors were encountered: