Koozali.org: home of the SME Server

signal-event - Command not found

Offline Martin Levi

  • *
  • 6
  • +0/-0
signal-event - Command not found
« on: December 24, 2015, 12:01:38 PM »
Hi, I have had to install SME Server 9, hoping that the signal-event command would work but it isn't.
It happened when I was installing moodle; and I gave up, then now I am installing wordpress and still I am having the same problem.
Anyone with an idea on what I should do? I am not so good with linux though.

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: signal-event - Command not found
« Reply #1 on: December 24, 2015, 12:37:35 PM »
Does '/sbin/e-smith/signal-event' work?
......

Offline Martin Levi

  • *
  • 6
  • +0/-0
Re: signal-event - Command not found
« Reply #2 on: December 24, 2015, 12:42:10 PM »
It displays the following

/sbin/e-smith/signal-event eventname [arg1 [arg2...]]

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: signal-event - Command not found
« Reply #3 on: December 24, 2015, 12:54:11 PM »
Hi, I have had to install SME Server 9, hoping that the signal-event command would work but it isn't.
You should start explaining in which way the command is "not working".
C'est la fin du monde !!! :lol:

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: signal-event - Command not found
« Reply #4 on: December 24, 2015, 12:57:17 PM »
OK, so yes, it runs.  This means that /sbin/e-smith isn't in your path.  Time for some troubleshooting questions:
  • Are you logged in as the root user?  If not, there's your problem--you need to be root to use signal-event
  • If you are root, how did you log in as root?  Did you log in directly as root, or did you log in as another user and then use su?
  • If you used su, what exact syntax did you use?  Did you just type "su", did you use "su -", or something else?

What I suspect is that you logged in as another user, used su to get root privileges, and did not do "su -".

When you log in as a user (let's call the user "fred"), the system loads fred's environment files--.bash_profile, .bashrc, etc.  These set a number of things for fred, like the arrangement of the shell prompt, command aliases, and the PATH variable.  The PATH variable defines where the system will look to run any command you enter in the shell, and the standard user's PATH does not include /sbin/e-smith (which is where the signal-event command is located).

When you run su, you are switched to the user specified (or root if no user is specified), but that user's environment files aren't read.  So you're now the root user, but root's PATH and such aren't applied--you're still using fred's path, prompt, aliases, etc.  So, /sbin/e-smith still isn't in your path.  To correct this, use "su -" instead of "su".
......

Offline Martin Levi

  • *
  • 6
  • +0/-0
Re: signal-event - Command not found
« Reply #5 on: December 24, 2015, 01:01:42 PM »
I am installing wordpress. When I enter the following command in the terminal

signal-event wordpress-update ; config set UnsavedChanges no

It displays the following error message
bash: signal-event: command not found
bash: config: command not found

I got the same error message when trying to install moodle
Yes, I am logged in as root

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: signal-event - Command not found
« Reply #6 on: December 24, 2015, 01:03:23 PM »
You answered the first of my three questions--how about the other two?
......

Offline Martin Levi

  • *
  • 6
  • +0/-0
Re: signal-event - Command not found
« Reply #7 on: December 24, 2015, 01:07:39 PM »
I really appreciate your help.
I type su when I need to log in as root from bash-4.1#
When I use su- , it says "bash: su: command not found"

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: signal-event - Command not found
« Reply #8 on: December 24, 2015, 01:08:43 PM »
It isn't su-, it's su -.  There's a space between the su and the -.
......

Offline Martin Levi

  • *
  • 6
  • +0/-0
Re: signal-event - Command not found
« Reply #9 on: December 24, 2015, 01:22:35 PM »
Oh, thanks Dan. I didn't know there was a space. I was using su- without a space.
Let me try that now.

Offline Martin Levi

  • *
  • 6
  • +0/-0
Re: signal-event - Command not found
« Reply #10 on: December 24, 2015, 01:24:54 PM »
Oh, thanks alot Dan.  :) the command signal-event has now worked after logging in with su -.
I was just using su to login to root before.
Thanks