LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 07-22-2022, 12:57 AM   #1
vdz
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Rep: Reputation: 0
System Shutdown Invalid - Error message


Hi All,

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.

Best Regards
 
Old 07-23-2022, 02:52 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,863
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
On systemd distros, shutdown is just a symlink to /bin/systemctl. Try shutting down using systemctl poweroff if using a systemd distro.
 
Old 07-25-2022, 05:49 PM   #3
vdz
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Hi mrmazda,
Thanks for the response. Unfortunately they don't use systemctl so I can't use poweroff

Best Regards
 
Old 07-25-2022, 06:04 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,863
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
What does man shutdown have to say? Neither -g nor -y are available options here in openSUSE.
 
Old 07-25-2022, 10:08 PM   #5
vdz
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 07-25-2022, 10:24 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,863
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
What happens with shutdown -g0 -y -i0 or shutdown -g0 -y -i6, or simply leaving out the gap between - and y?
 
Old 07-25-2022, 10:32 PM   #7
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,343

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
I suggest that you try:

shutdown -y now
 
Old 07-26-2022, 05:51 PM   #8
vdz
LQ Newbie
 
Registered: Oct 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Hi jailbait and mrmazda,

Unfortunately, none of them helped.
Best Regards
 
Old 07-26-2022, 07:10 PM   #9
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,863
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
I'm out of ideas. The closest thing I ever used to any Unix flavor was Xenix, 35 years ago.
 
Old 07-26-2022, 10:30 PM   #10
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,814

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by vdz View Post
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.

Anyway, I would expect to use something like:
Code:
# shutdown -g0 -i0 -y
to shut the system down NOW with no confirmation.

HTH...
 
Old 07-29-2022, 11:28 AM   #11
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error-message when shutting down system, yet shutdown works well Rosika Linux - Newbie 14 04-08-2019 10:38 AM
what is the default powerstate (e.g. S3,S4,S5) for the command 'shutdown -hP' or 'shutdown -hH' or 'shutdown -h' badbetty Slackware 6 11-12-2017 12:18 AM
[SOLVED] system failed to save session at shutdown, but retrieved changes after next shutdown - ?! newbiesforever Linux - General 5 06-09-2016 09:58 PM
[SOLVED] shutdown works, but /lib/systemd/system/shutdown.target does not. kaz2100 Debian 3 08-06-2014 03:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration