Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: philmills on May 15, 2012, 11:22:52 am

Title: Commands for manually restarting services
Post by: philmills 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.
Title: Re: Commands for manually restarting modules
Post by: philmills 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
Title: Re: Commands for manually restarting services
Post by: philmills on May 21, 2012, 03:09:40 pm
and Zentyal mods made it sticky too!  I feel kinda fluffy... :)
Title: Re: Commands for manually restarting services
Post by: stfn 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.
Title: Re: Commands for manually restarting services
Post by: andy1 on May 06, 2014, 07:39:32 pm
Thanks for both command and modules' list Phil, it helped me a lot.
Title: Re: Commands for manually restarting services
Post by: msnrajon on November 24, 2014, 09:40:19 am
Thanks for the tips!.

Regards
Shah Newaj
Title: Re: Commands for manually restarting services
Post by: engrmahe on December 28, 2015, 02:09:08 pm
Thank u friend  ;D
Title: Re: Commands for manually restarting services
Post by: J. A. Calvo on December 08, 2016, 01:06:27 pm
In Zentyal 5.0, this is done with:

sudo zs modulename restart
Title: Re: Commands for manually restarting services
Post by: RAB 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
Title: Re: Commands for manually restarting services
Post by: RAB 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
Title: Re: Commands for manually restarting services
Post by: tellme on March 21, 2018, 10:07:05 pm
Thx man !!!! Great job !
Title: Re: Commands for manually restarting services
Post by: tranthithanhmo on July 08, 2019, 10:09:26 am
Thanks You So Much !!!!