Bug 26087 - Update samba3 -> samba4: samba init Script und Links im Runlevel
Update samba3 -> samba4: samba init Script und Links im Runlevel
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0-2
Assigned To: Felix Botner
Arvid Requate
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-10 12:43 CET by Felix Botner
Modified: 2012-07-20 15:24 CEST (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2012-02-10 12:43:38 CET
Nach dem "In place upgrade" von Samba 3 auf Samba4 auf einem UCS 3.0 Master ist das samba init Script und Links in rc2.d und rc6.d noch vorhanden.

-> file /etc/init.d/samba
/etc/init.d/samba: POSIX shell script text executable

-> file /etc/rc2.d/S53samba 
/etc/rc2.d/S53samba: symbolic link to `../init.d/samba'
-> file /etc/rc6.d/K19samba 
/etc/rc6.d/K19samba: symbolic link to `../init.d/samba'

Spätestens hier sollte es doch wohl eine Meldung geben, dass samba nicht mehr verwendet wird:

-> /etc/init.d/samba stop
Stopping Samba daemons: nmbd smbd.
Comment 1 Arvid Requate univentionstaff 2012-02-13 10:49:05 CET
IMHO sollte der Post-Update-Code in setup-s4.sh diese Dinge aufräumen.
Comment 2 Janis Meybohm univentionstaff 2012-04-17 11:58:53 CEST
Ticket#: 2012032621002141

Auf einem aktualisierten Kundensystem:

/etc/init.d/samba

# find /etc/rc* -name "*samba"
/etc/rc0.d/K19samba
/etc/rc1.d/K19samba
/etc/rc2.d/S53samba
/etc/rc3.d/S53samba
/etc/rc4.d/S53samba
/etc/rc5.d/S53samba
/etc/rc6.d/K19samba

# dpkg -l
rc  samba                            2:3.5.11~dfsg-10.519.20111114141
rc  univention-samba                 6.0.19-2.326.201112080946

Das führt (u.a.) dazu dass ggf. der nmbd aus Samba3 noch gestartet wird auch wenn  samba4/service/smb und samba4/service/nmb auf "s4" Konfiguriert wurden.
Comment 3 Felix Botner univentionstaff 2012-07-10 10:34:22 CEST
Im Postinst von univention-samba4 werden die samba Links nun entfernt
update-rc.d -f samba remove > /dev/null

Das init Skript bleibt aber weiterhin installiert.

Vielleicht sollte man darüber nachdenken, in der Upgrade Doku darauf hinzuweisen samba mit dpkg -P nach dem Upgrade zu deinstallieren.
Comment 4 Arvid Requate univentionstaff 2012-07-12 13:07:37 CEST
Vielleicht sollte das nur bei Update (dpkg --compareversion) und bei Neuinstallation gemacht werden.
Comment 5 Felix Botner univentionstaff 2012-07-12 13:22:41 CEST
(In reply to comment #4)
> Vielleicht sollte das nur bei Update (dpkg --compareversion) und bei
> Neuinstallation gemacht werden.

OK
Comment 6 Arvid Requate univentionstaff 2012-07-12 14:19:52 CEST
Verfied:
 * Funktion bei installation und update OK
 * Changelog OK
Comment 7 Stefan Gohmann univentionstaff 2012-07-20 15:24:54 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

If this error occurs again, please use "Clone This Bug".