Samba4 Systemd script

By | April 1, 2016

samba-logoIf you are using Samba4 AD DC with CentOS 7, you will missed the initScript for Samba4 created for older versions. CentOS 7 has no longer support initScript which now replaced with Systemd.

Here we are demonstrating the Samba4 Systemd script for CentOS7:

Create a samba.service file at /etc/systemd/system/samba.service

Start/Stop Samba service:

Start the Samba service:

Enable the samba service on startup:

Check the status of samba:

If you need to stop the samba service use:


Leave a Reply

Your email address will not be published. Required fields are marked *