You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run a cron job daily at noon to update my Linux instance. Occasionally it will require a restart to complete the update. The job that updates the system checks for the flag file (currently /var/run/meedsrestart) and notifies me. On my native Linux systems I use the "sudo shutdown -r now" command. Unfortunately in WSL2 I get
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Failed to talk to init daemon.
I get the same from /sbin/reboot.
Is there a way to get the same functionality?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I run a cron job daily at noon to update my Linux instance. Occasionally it will require a restart to complete the update. The job that updates the system checks for the flag file (currently /var/run/meedsrestart) and notifies me. On my native Linux systems I use the "sudo shutdown -r now" command. Unfortunately in WSL2 I get
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Failed to talk to init daemon.
I get the same from /sbin/reboot.
Is there a way to get the same functionality?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions