Author Topic: Commands for manually restarting services  (Read 59022 times)

philmills

  • Zen Warrior
  • ***
  • Posts: 161
  • Karma: +8/-0
    • View Profile
Commands for manually restarting services
« on: May 15, 2012, 11:22:52 am »
I've been looking through all documentation, but I can't find what I'm looking for.
I need to manually restart the backup service in Zentyal 2.2.7, but I can't find the command.

Is there anywhere documented all of the module service names?
It would be really useful to have a list of them all along with the various cli commands that can be used.

If it doesn't already exist, please can we have it added to either the WIKI or the official documentation.

philmills

  • Zen Warrior
  • ***
  • Posts: 161
  • Karma: +8/-0
    • View Profile
Re: Commands for manually restarting modules
« Reply #1 on: May 15, 2012, 11:35:26 am »
OK I think I have figured it out for myself, so here goes:

For Zentyal 2.2 - other versions may differ.
================================
The command for restarting a module via cli (terminal)

sudo /etc/init.d/zentyal modulename restart

The module names are as follows:
    * antivirus
    * asterisk
    * ca
    * dhcp
    * dns
    * ebackup
    * firewall
    * ftp
    * ids
    * jabber
    * l7-protocols
    * mail
    * mailfilter
    * monitor
    * network
    * ntp
    * objects
    * openvpn
    * printers
    * remoteservices
    * samba
    * services
    * software
    * squid
    * trafficshaping
    * users
    * usercorner
    * webserver
    * radius
    * webmail
    * zarafa

I would be grateful if this post could be moved to Tips and Tricks

philmills

  • Zen Warrior
  • ***
  • Posts: 161
  • Karma: +8/-0
    • View Profile
Re: Commands for manually restarting services
« Reply #2 on: May 21, 2012, 03:09:40 pm »
and Zentyal mods made it sticky too!  I feel kinda fluffy... :)
« Last Edit: May 28, 2012, 09:53:32 am by philmills »

stfn

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Commands for manually restarting services
« Reply #3 on: November 09, 2013, 12:13:20 pm »
Thanks! I was looking for a way to restart the "file sharing" module with a cronjob cause it is causing high kswapd CPU usage every few days. This info helped me do it.

andy1

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Commands for manually restarting services
« Reply #4 on: May 06, 2014, 07:39:32 pm »
Thanks for both command and modules' list Phil, it helped me a lot.

msnrajon

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Commands for manually restarting services
« Reply #5 on: November 24, 2014, 09:40:19 am »
Thanks for the tips!.

Regards
Shah Newaj

engrmahe

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Commands for manually restarting services
« Reply #6 on: December 28, 2015, 02:09:08 pm »
Thank u friend  ;D

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Commands for manually restarting services
« Reply #7 on: December 08, 2016, 01:06:27 pm »
In Zentyal 5.0, this is done with:

sudo zs modulename restart
Zentyal Server Lead Developer

RAB

  • Zen Apprentice
  • *
  • Posts: 42
  • Karma: +2/-0
    • View Profile
Re: Commands for manually restarting services
« Reply #8 on: June 27, 2017, 09:17:53 am »
Hi,

Could you also provide a list of the module names available in Zentyal 5 ?

I did put some effort into it but could not find an up-to-date list.

In particular I am looking for the module name of the zentyal web interface which froze on me (apache is up).

Thanks!
RAB

RAB

  • Zen Apprentice
  • *
  • Posts: 42
  • Karma: +2/-0
    • View Profile
Re: Commands for manually restarting services
« Reply #9 on: June 27, 2017, 09:23:31 am »
Never mind, the module list is just one layer deeper.

Just use an arbitrary module name that does not exist and on the unknown modulename the zs command will still display which modules are available.

for example:

# sudo zs myfakemodule restart

tellme

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Commands for manually restarting services
« Reply #10 on: March 21, 2018, 10:07:05 pm »
Thx man !!!! Great job !

tranthithanhmo

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
  • Computer
    • View Profile
    • Thietbivienthong
Re: Commands for manually restarting services
« Reply #11 on: July 08, 2019, 10:09:26 am »
Thanks You So Much !!!!