I’m trying to setup a container with systemctrl running on. basically I just need to run this command:
systemctl status NetworkManager.service
I need to run this command in order to be able to put the device in monitor mode, and thanks to this post I’ve found this solution (that actually works if I type the command by ssh into the device). Moreover, I’m following this post: installing-your-own-initsystem to make this thing work.
To be precise, I’m using the example in this repo
What I’m facing is basically that this command that is in entry.sh:
exec env DBUS_SYSTEM_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket /sbin/init quiet systemd.show_status=0
hangs and cannot execute the rest of my commands (which are just right next). Dunno if this is the right behavior of init…
Do you have some clue?
How can I basically run just the command above? It would be great if there is a sort of “scripts” that could be run at startup by the host… are there any particular solution to achieve that?