-
Notifications
You must be signed in to change notification settings - Fork 28
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
iVentoy Autostart #4
Comments
You can integrate the following cmd in any autostart script.
with -R option, it will auto start the service with last saved parameters. Or you can send command by curl to emulate the web behavior, you can refer: |
Ah, thanks - I did not see that anywhere on the website's documentation. Am I also purely limited to 20 devices or is there a way of resetting that/having them overwrite each other? |
Saved my day. I was able to configure automatic boot within linux:
|
Nothing prevents you from writhing a systemd service unit for iventoy yourself. Here is what I came up with:
Of course, replace |
Using your code for running as a service on AlmaLinux doesn't fully work for me. It starts and I'm able to access the webpage but the IP address is not detected. Is there a fix for this? |
Evidently the error you are getting has nothing to do with the systemd unit since the service has started and running. Otherwise you won't see a web interface. The machine you are running iventoy on must have a wired connection to the network. iVentoy believes that your machine does not. |
@104ru - It's wired. I do not have this issue when I disable the service and start iVentoy with the script Only happens when I try to run iVentoy as a service, using the code that you provided. Wonder why it works for your system but not mine? My system is an AlmaLinux 9.3 VM. Maybe |
So far, changing from |
Hi, Just an update - have added this startup service on my server and it is doing the same as jeff's system and not detecting the NIC anymore, but strangely only after a fresh reboot/start of the server. It worked just fine initially starting the script after adding it. I'm running OpenMediaVault (basically just Debian underneath) since it is easier for management of the drives on my NAS. Changing I also have an issue where dnsmasq is occupying the DHCP port before iVentoy can get to it, meaning the actual service doesn't start automatically still. But this must be a configuration issue somewhere else my end. Dnsmasq was pulled in by I believe qemu and even though I have removed it, somehow it is still finding a way to start. Maybe I just need to properly reinstall dnsmasq and change the port it's using. |
The dnsmasq issue appears to be libvirt using its own built-in version of dnsmasq to supply the virtual networks. Since I rarely use the VM on this server, the virtual network can just be set to not load on boot and need to be manually activated. Can now confirm that everything is starting on system boot - but it is no longer recognising the interface again. If I manually reload the service it does get the IP Configuration. Strange |
As far as I can tell, there is no realistic way of launching iVentoy at boot as of right now. In my case, and likely in many other people's case, my server goes down overnight to save energy, and when it comes up in the morning I have no way of starting iVentoy other than to SSH in, and then go to the webpanel to start the DHCP. It would be cool to see the integration of a SystemD and OpenRC script which can automatically start the iVentoy service and DHCP server. This would also make it handy if any servers go offline at any point, and when they come back online the PXE services do not have to be started again manually.
Not really an issue, more of a suggesdtion but still.
The text was updated successfully, but these errors were encountered: