Useful commands

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
cpighin
Posts: 80
Joined: 04 Mar 2015 18:21
Location: Ciampino (RM)

Useful commands

Post by cpighin »

:) Hello There,

please consideri that I'm new to Z-wave, so be "very elementary" in responding :)

I have recently purchased a Raspberry PI 2 and a RazBerry module and I tried everything: apparently hardware works a expected.

In the Discussioni in Italiano Section, SolarFlor posted commands to stop and restart the z-way server .

I gave the command to stop the RPI2, by a Desktop terminal of Rasbberry, which I accessed from the PC, and I got the following response

Code: Select all

root @ raspberrypi: / # sudo /etc/init.d/Z-Way stop
sudo: /etc/init.d/Z-Way: command not found 
I thought the command was wrong because, acting as Administrator from the terminal, there was no need of sudo .
Then I changed the command and I got:

Code: Select all

root @ raspberrypi: / # /etc/init.d/Z-Way stop
bash: /etc/init.d/Z-Way: No such file or directory
Where am I wrong?

Claudio :)
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Useful commands

Post by pz1 »

The service name has changed since quite a while ago. So try

Code: Select all

sudo /etc/init.d/z-way-server stop
cpighin
Posts: 80
Joined: 04 Mar 2015 18:21
Location: Ciampino (RM)

Re: Useful commands

Post by cpighin »

Thanks pz1 :)

you commands were successful

Code: Select all

root@raspberrypi:/# sudo /etc/init.d/z-way-server stop
Stopping z-way-server: done.
root@raspberrypi:/# sudo /etc/init.d/z-way-server start
Starting z-way-server: done.
root@raspberrypi:/#
A couple of questions:
where can I find updated list of commands?
Why it's used sudo if in the terminal if we have root privileges (see#)?

Claudio :)
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Useful commands

Post by pz1 »

cpighin wrote: where can I find updated list of commands?
The Developers Documentation (see razberry.z-wave.me) It is the official documentation, but not complete and up to date yet.
Why it's used sudo if in the terminal if we have root privileges (see#)?
Sudo does give you elevated rights, if you do have sufficient rights, you don't need it
cpighin
Posts: 80
Joined: 04 Mar 2015 18:21
Location: Ciampino (RM)

Re: Useful commands

Post by cpighin »

cpighin wrote: where can I find updated list of commands?
pz1 wrote:The Developers Documentation (see razberry.z-wave.me) It is the official documentation, but not complete and up to date yet.
Maybe I'm wrong, but I downloaded zwayDev.pdf (I think the most complete manual) and I couldn't find command to start and stop Z-wave.

Claudio :)
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Useful commands

Post by pz1 »

Latest version of developers documentation from Github does not refer to that either. Found no other documents on that.
End user document nothing.
Post Reply