[PATCH] smbd.service: Run update-apparmor-samba-profile before start
authorMathieu Parent <math.parent@gmail.com>
Thu, 21 Feb 2019 20:04:30 +0000 (21:04 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 19 Feb 2024 12:21:14 +0000 (15:21 +0300)
Bug-Debian: https://bugs.debian.org/896080

Gbp-Pq: Name smbd.service-Run-update-apparmor-samba-profile-befor.patch

packaging/systemd/smb.service.in

index 64c77c01502b8f71a94f3348b0f6681481ae742b..096433b04fa551b874b925d9c3c9611b2e70143b 100644 (file)
@@ -9,6 +9,7 @@ Type=notify
 PIDFile=@PIDDIR@/smbd.pid
 LimitNOFILE=16384
 EnvironmentFile=-@SYSCONFDIR@/sysconfig/samba
+ExecStartPre=/usr/share/samba/update-apparmor-samba-profile
 ExecStart=@SBINDIR@/smbd --foreground --no-process-group $SMBDOPTIONS
 ExecReload=/bin/kill -HUP $MAINPID
 LimitCORE=infinity