Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
We have an issue mentioned above in Subject.
Long story short, we have a replica job using Veeam, when I turned on the cloned / replicated VM I got the error message shutdown invalid, I shutdown with shutdown -g0 - y again in hope we could get rid of the error message, but it is still there.
How can I get rid of the error message?
Thanks a lot in advance.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,814
Rep:
Quote:
Originally Posted by vdz
Hi Mrmazda
man shutdown:
Shutdown [-y] [-ggrace_period] [-iinit_state]
Other recommended system state definitions are:
State 0
State 1
State s, S
State 5
State 6
So you know it is UnixWare 7 Release 7.1.4
Best Regards
I thought that looked familiar. I haven't seen that form of shutdown since running Consensys (SysV4.2) on my old 486.
What is the default for the '-i' switch? The command you're using is telling shutdown to use 0 minutes for the grace period but I'm not sure if you've told it that you want to go to level 0. The error message you're seeing may simply be a Unixware's cryptic way of saying "target run level unknown".
Just for the heck of it, issue
Code:
# which shutdown
(hoping Unixware implemented the 'which' command.)
I'm wondering if you're inadvertently running someone's old shutdown wrapper script (with an unfortunate name) and the arguments aren't the same as the system's shutdown command. Stranger things have been done.
There used to be a real binary shutodwn, but then a script called shutdown that actually does a more graceful shutdown. You have to identify (like rnturn said) and identify the shutdown in the script. Often, it is a assumed PATH that doesn't include or has the wrong ordering. If you figure it out, just make it full path, like /usr/sbin/shutdown instead of assuming a PATH search.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.