Displaying 20 results from an estimated 141 matches for "execreload".
2016 Jul 12
6
Option configure
...-dc.service script:
[Unit]
Description=Samba AD Daemon
Documentation=man:samba(8) man:samba(7) man:smb.conf(5)
After=network.target
[Service]
Type=notify
NotifyAccess=all
PIDFile=/run/samba.pid
LimitNOFILE=16384
EnvironmentFile=-/etc/default/samba
ExecStart=/usr/sbin/samba $SAMBAOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
Am 12.07.2016 um 20:53 schrieb Sonic:
> On Tue, Jul 12, 2016 at 10:09 AM, Sonic <sonicsmith at gmail.com> wrote:
>> Mine use Type=forking, I had some issues with Type=notify
> Further testing seems to verify that eit...
2018 Mar 13
1
Workaround for bind9 reload bug : samba_dlz Ignoring duplicate zone
...system/bind9.service
> [Unit]
> Description=BIND Domain Name Server
> Documentation=man:named(8)
> After=network.target
> Wants=nss-lookup.target
> Before=nss-lookup.target
>
> [Service]
> EnvironmentFile=/etc/default/bind9
> ExecStart=/usr/sbin/named -f $OPTIONS
> ExecReload=/usr/sbin/rndc reload
> ExecStop=/usr/sbin/rndc stop
>
> [Install]
> WantedBy=multi-user.target
>
>
> The correct workaround is edit, and add..
> systemctl edit bind9
> Add :
> [Service]
> ExecReload=
>
>
> And done.
>
> Greetz,
>
> Louis...
2016 Jul 12
1
Option configure
...>>
>> [Service]
>>
>> Type=notify
>>
>> NotifyAccess=all
>>
>> PIDFile=/run/samba.pid
>>
>> LimitNOFILE=16384
>>
>> EnvironmentFile=-/etc/default/samba
>>
>> ExecStart=/usr/sbin/samba $SAMBAOPTIONS
>>
>> ExecReload=/bin/kill -HUP $MAINPID
>>
>> [Install]
>>
>> WantedBy=multi-user.target
>>
>>
>
> that is basically what init scripts do, i.e if fileserver start the
> nmbd, smbd and winbindd binaries, if AD DC just start the samba
> binary, but is this what Sonic...
2018 May 14
1
Logrotate
...My problem is, when logrotate is executed, log is rotate but after ,
>> don't log messages anymore, log.samba is was"zero"., is need restart in
>> samba, then log message is back
>
> that's why postrotate and SIGHUP exists
> a proper systemd unit should have ExecReload
>
> if not make a drop-in: /etc/systemd/system/samba.service.d/reload.conf
> [Service]
> ExecReload=/usr/bin/kill -HUP $MAINPID
>
> after create folder and file: systemctl daemon-reload
>
> stop/sart would be wrong anyways - that's what RESTART is for
and proper dist...
2018 May 14
3
Logrotate
Hi!
I have one problem with my logrotate.
Samba version:
Samba 4 7.7 (compilated)
S.O.:
Ubuntu 14.04 /16.04
Samba logs file:
/opt/samba/var/
Logrotate File:
cat /etc/logrotate.d/samba
--
/opt/samba/var/log.samba
{
rotate 10
daily
compress
dateext
size 100M
nomail
missingok
notifempty
create 644 root root
2019 Nov 21
3
Issue with "ExecStartPost" attribute in systemd daemon faile
...;crond.service" file is:
# /etc/systemd/system/crond.service
[Unit]
Description=Command Scheduler
After=auditd.service systemd-user-sessions.service time-sync.target
#OnFailure=crond-notify-email@%i.service
[Service]
EnvironmentFile=/etc/sysconfig/crond
ExecStart=/usr/sbin/crond -n $CRONDARGS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartSec=10s
ExecStartPost=/bin/sh -c "/etc/systemd/system/test.sh"
[Install]
WantedBy=multi-user.target
My "test.sh" is very simple:
#!/bin/sh
echo "CROND is restarting" | /usr/bin/mailx -s "crond fai...
2020 Oct 12
1
BIND9 failing
Forgot this one.
systemctl edit bind9
#/etc/systemd/system/bind9.service.d/override.conf is created.
# add below.
[Service]
# Disable reloading completely.
ExecReload=
# Or set it to restart
#ExecReload=/usr/sbin/rndc restart
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> L.P.H. van Belle via samba
> Verzonden: maandag 12 oktober 2020 16:36
> Aan: samba at lists.samba.org
>...
2017 Nov 23
7
Compiling Samba 4.7 with systemd support on Fedora 26
The systemd unit file looks like as follows:
[Unit]
Description=Winbindd Service
After=syslog.target network.target
[Service]
Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba
Type=notify
NotifyAccess=all
PIDFile=/var/run/samba/
ExecStart=/usr/local/samba/sbin/winbindd -D
ExecReload=/usr/bin/kill -HUP $MAINPID
LimitCORE=infinity
[Install]
@Rowland I am not blaming samba at all, certainly is some sort of
systemd+samba issue.
I will try increasing the log verbosity and see if I see anything else.
Installing samba from rpm works fine, so it would seem fedora package
maintain...
2017 Sep 25
1
A lot of zombie processes on Debian 9
Can you try with this systemd unit file.
Restarting does not close all prosesses with that one.
( you need : ExecReload=/bin/kill -HUP $MAINPID )
Jessie used probely sysv and not systemd, which should explain why there are so many zombies.
[Unit]
Description=Samba AD Daemon
Documentation=man:samba(8) man:samba(7) man:smb.conf(5)
After=network.target
[Service]
Type=notify
NotifyAccess=all
PIDFile=/server/samba/b...
2018 Jan 10
2
Issues accessing ZFS-shares on Linux
...]
Description=Samba SMB Daemon
Documentation=man:smbd(8) man:samba(7) man:smb.conf(5)
After=network.target nmbd.service winbind.service
[Service]
Type=notify
NotifyAccess=all
PIDFile=/var/run/samba/smbd.pid
LimitNOFILE=16384
EnvironmentFile=-/etc/default/samba
ExecStart=/usr/sbin/smbd $SMBDOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
LimitCORE=infinity
[Install]
WantedBy=multi-user.target
Jeremy Allison via samba kirjoitti 9.1.2018 klo 21:47:
> On Tue, Jan 09, 2018 at 07:57:41AM +0200, John Doe via samba wrote:
>> I added one testshare /home/testijako and connected to it with the same
>>...
2019 Nov 22
1
Issue with "ExecStartPost" attribute in systemd daemon faile
...any mail.
Daemon and script files were:
* crond.service:
* [Unit]
Description=Command Scheduler
After=auditd.service systemd-user-sessions.service time-sync.target
OnFailure=crond-notify-email.service
[Service]
EnvironmentFile=/etc/sysconfig/crond
ExecStart=/usr/sbin/crond -n $CRONDARGS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
* crond-notify-email.service:
* [Unit]
Description=crond failure email notification
After=crond.service
Requires=crond.service
[Service]
Type=oneshot
ExecStart=/etc/systemd/sy...
2018 Jun 21
3
hosts allow option is not applaying without restart smbd
On Thu, 21 Jun 2018 19:17:14 +0700
Vladimir Eltsov via samba <samba at lists.samba.org> wrote:
> Hello.
>
> I have read man smbcontrol.
>
> I wrote in start message:
>
> > I have tried:
> > systemctl reload smbd.service
> > killall -1 smbd
> > pkill -HUP smbd
Forget 'systemctl reload'
Forget 'killall'
Forget 'pkill'
>
2019 Apr 25
3
Managing samba ad dc with systemd
...d
/etc/systemd/system/samba-ad-dc.service file with the following content:
[Unit]
Description=Samba Active Directory Domain Controller
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
ExecStart=/usr/local/samba/sbin/samba -D
PIDFile=/usr/local/samba/var/run/samba.pid
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
I've created a mask to smbd, nmbd and winbind and I've disabled them
following this command: # systemctl mask smbd nmbd winbind # systemctl
disable smbd nmbd winbind. But, when I've use systemctl stop samba-ad-dc to
stop sa...
2018 Dec 21
1
Samba AD DC replication error - 2, 'WERR_BADFILE'
...k like:
root at location-000001:~# cat /etc/systemd/system/bind9.service
[Unit]
Description=BIND Domain Name Server
Documentation=man:named(8)
After=network.target
Wants=nss-lookup.target
Before=nss-lookup.target
[Service]
EnvironmentFile=/etc/default/bind9
ExecStart=/usr/sbin/named -f $OPTIONS
ExecReload=
ExecStop=/usr/sbin/rndc stop
[Install]
WantedBy=multi-user.target
root at location-000001:~# cat /etc/systemd/system/samba-ad-dc.service
[Unit]
Description=Samba AD Daemon
Documentation=man:samba(8) man:samba(7) man:smb.conf(5)
After=network.target bind9.service
[Service]
Type=notify
NotifyAc...
2017 Jun 20
1
[4.2.14-Debian] Smbd not listening on 192.168.0.x on cold start
...]
Description=Samba SMB Daemon
Documentation=man:smbd(8) man:samba(7) man:smb.conf(5)
After=network.target nmbd.service winbind.service
[Service]
Type=notify
NotifyAccess=all
PIDFile=/var/run/samba/smbd.pid
LimitNOFILE=16384
EnvironmentFile=-/etc/default/samba
ExecStart=/usr/sbin/smbd $SMBDOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
LimitCORE=infinity
[Install]
WantedBy=multi-user.target
------------------
cat /lib/systemd/system/nmbd.service
[Unit]
Description=Samba NMB Daemon
Documentation=man:nmbd(8) man:samba(7) man:smb.conf(5)
After=network-online.target
Wants=network-online.target
[Service]
Typ...
2020 Sep 22
1
starting stoping samba 4.11
...system/smb.service
> [Unit]
> Description=Samba SMB Daemon
> After=network-up.service
> Requires=network-online.target network-up.service
>
> [Service]
> Type=notify
> NotifyAccess=all
> LimitNOFILE=32768
> ExecStart=/usr/sbin/smbd --foreground --no-process-group
> ExecReload=/usr/bin/kill -HUP $MAINPID
> PermissionsStartOnly=true
> Restart=always
> RestartSec=1
> Nice=19
>
> PrivateTmp=yes
> PrivateDevices=yes
> ProtectKernelTunables=yes
> ProtectKernelModules=yes
> ProtectControlGroups=yes
> MemoryDenyWriteExecute=yes
> CapabilityBo...
2016 Apr 02
2
Upgrading Samba 3 to Samba 4 - Domain Controller unreachable
On 02/04/16 20:59, Sonic wrote:
> On Sat, Apr 2, 2016 at 2:34 PM, Rowland penny <rpenny at samba.org> wrote:
>> On debian there is a script called samba in /etc/init.d , it starts smbd &
>> nmbd *or* samba, if it doesn't find 'server role = active directory domain
>> controller' in smb.conf , it doesn't try to start the samba deamon.
> Odd that
2018 Mar 13
1
Workaround for bind9 reload bug : samba_dlz Ignoring duplicate zone
...re it is again. .
systemctl cat bind9
# /lib/systemd/system/bind9.service
[Unit]
Description=BIND Domain Name Server
Documentation=man:named(8)
After=network.target
Wants=nss-lookup.target
Before=nss-lookup.target
[Service]
EnvironmentFile=/etc/default/bind9
ExecStart=/usr/sbin/named -f $OPTIONS
ExecReload=/usr/sbin/rndc reload
ExecStop=/usr/sbin/rndc stop
[Install]
WantedBy=multi-user.target
The correct workaround is edit, and add things in systemd.
systemctl edit bind9
Add :
[Service]
ExecReload=
Save, type : systemctl restart bind9
The result is saved in :
/etc/systemd/system/bind9.service...
2015 Nov 12
1
systemd unit to start Samba as AD DC
...---
[Unit]
Description=Samba Active Directory Services
Documentation=man:samba(8)
After=network.target
[Service]
Type=forking
PIDFile=/var/run/samba/samba.pid
LimitNOFILE=16384
EnvironmentFile=-/etc/default/samba
ExecStartPre=-/usr/bin/mkdir /var/run/samba
ExecStart=/usr/sbin/samba -D -M standard
ExecReload=/usr/bin/kill -HUP $MAINPID
#FailureAction=
[Install]
WantedBy=multi-user.target
------------------------------------------------------------------------------------
I start from https://dev.tranquil.it/wiki/SAMBA_-_Fichier_systemd_samba4
As the few options used during ./configure made my Samba...
2020 Sep 21
4
starting stoping samba 4.11
Hello I am using samba Version 4.11.2 compiled.
To start the daemon I using
/samba10/samba-4.11.2/bin/samba -s /etc/samba/smb.conf
To stop correctly, what is recommended ?
Actually I using kill -9 ...
Regards.