Web lists-archives.com

Re: [Samba] /etc/init.d/samba in Ubuntu_18.04




On Thu, 18 Oct 2018 15:24:40 +0200
Reindl Harald via samba <samba@xxxxxxxxxxxxxxx> wrote:

> 
> 
> Am 18.10.18 um 15:19 schrieb Anderson Hoffmann do Carmo via samba:
> > I use a script for backup Samba/AD and before running the backup I
> > use the command '/etc/init.d/samba stop'
> > After I migrated ubuntu from version 16 to version 18, this command
> > was invalid
> > 
> > root@gserv2:~#
> > root@gserv2:~# */etc/init.d/samba stop*
> > -bash: /etc/init.d/samba: No such file or directory
> > root@gserv2:~#
> > 
> > Please, which command should I use to stop and start the Samba/AD
> > service correctly?
> 
> man systemctl
> /etc/init.d is gone

No it hasn't, it is still there

> 
> msart distribution like Redhat based have placed a wrapper for their
> service command which redirect automatically, never called anything in
> /etc/init.d directly
> 

Yes, I suppose he could use 'service samba stop', except that probably
wouldn't work either, 'samba' as a service was removed. 'service
samba-ad-dc stop' might.

Rowland


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba