Skip to contentSkip to conversation

samba: disable service by default

PATCH In review Chong Lu 2 participants 4 messages Jan 28, 2015

lore
Share & tools
lore

Chong Lu

author
#0 lore raw

PATCH 1/1 samba: disable service by default

Disable smb, nmb, winbind service by default.

---
 meta-oe/recipes-connectivity/samba/samba.inc | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-connectivity/samba/samba.inc +2 -0
index fd96bbe..b04a9dd 100644
@@ -20,6 +20,8 @@ inherit autotools-brokensep update-rc.d systemd
 SYSTEMD_PACKAGES = "${PN} winbind"
 SYSTEMD_SERVICE_${PN} = "nmb.service smb.service"
 SYSTEMD_SERVICE_winbind = "winbind.service"
+SYSTEMD_AUTO_ENABLE_${PN} = "disable"
+SYSTEMD_AUTO_ENABLE_winbind = "disable"
 
 SAMBAMMAP = "no"
 SAMBAMMAP_libc-glibc = "yes"
Signature · 1 line
1.9.1
#1 lore raw

Hi Chong,

Quoted 1 line · On Wednesday 28 January 2015 11:23:43 Chong Lu wrote:

Disable smb, nmb, winbind service by default.

The commit message says what you are doing, but doesn't explain the reason - why do you want to do this?

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
author
#2 lore raw
Quoted 10 lines · Paul Eggleton

Hi Chong,

Quoted 1 line · On Wednesday 28 January 2015 11:23:43 Chong Lu wrote:

Disable smb, nmb, winbind service by default.

The commit message says what you are doing, but doesn't explain the reason - why do you want to do this?

Cheers,
Paul

Hi Paul,

The config file need configure by user, else I think there is no meaning for enable samba by default.

Best Regards
Chong

#3 lore raw
Quoted 4 lines · On Wednesday 28 January 2015 17:30:19 Chong Lu wrote:
Quoted 3 lines · Paul Eggleton

Hi Chong,

On Wednesday 28 January 2015 11:23:43 Chong Lu wrote:

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Disable smb, nmb, winbind service by default.

The commit message says what you are doing, but doesn't explain the reason
- why do you want to do this?

The config file need configure by user, else I think there is no meaning for enable samba by default.

Surely that's a distro decision though?

I'm just guessing, but if the problem you're trying to address is that the services get pulled into an image unexpectedly or where they aren't needed, then if at all practical it would be best to try to split the packaging such that the needed client/utility binaries are available without those services and thus the services should never be in an image they are explicitly requested.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre