Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#34978 - [samba] Missing samba.service systemd entry

Attached to Project: Arch Linux
Opened by Henry Tung (compgamer89) - Saturday, 27 April 2013, 00:18 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 06 May 2013, 12:15 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:

Seems the samba systemd target was removed from the package at some point before its addition to the official repos; I was using an AUR version for a while since my daily pacman upgrade stalled on the 4.1 upgrade, and now that I've finished the upgrade my samba AD DC no longer starts. :( Was this an intentional change, or can the service file be added back? (Note that the smbd binary does not start configs of this type, it requires usage of the samba binary instead.)

If it was intentional, would there be an archived copy of the samba4 from the AUR somewhere? Would prefer using whatever was in that service file rather than cooking up my own. Thanks!

Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:

1. systemctl enable samba.service
2. Be sad
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Monday, 06 May 2013, 12:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  4.0.5-2
Comment by Ionut Biru (wonder) - Saturday, 27 April 2013, 06:04 GMT
pacman -Ql samba | grep systemd


systemctl enable smbd
Comment by Tobias Powalowski (tpowa) - Saturday, 27 April 2013, 06:59 GMT
This is not a bug, the samba3 always used smbd to start.
Comment by Mark Carbonaro (carbs) - Monday, 29 April 2013, 06:04 GMT
  • Field changed: Percent Complete (100% → 0%)
Sorry to pester you on this, but smbd.service is used for stand alone file sharing etc, samba.service is used for Active Directory serving, samba will then start smbd as required. I was running samba.service and once it was removed, I could no longer run Active Directory services, starting smbd.service resulted in an error telling me to start samba.service. There may be some confusion as to the purpose of samba.service, but as it stands your can not use Arch Linux as an Active Directory server. I have manually used the file included in the upstream source to get this working again.
Comment by Tobias Powalowski (tpowa) - Monday, 29 April 2013, 06:14 GMT
Please post the service file.
Comment by Mark Carbonaro (carbs) - Monday, 29 April 2013, 07:05 GMT
Have attached both the service file, samba.service and the environment file (I have it in /etc/conf.d/samba). I have only made minor modifications from upstream to correct some paths on my system.

Let me know if there is anything else you require.
Comment by Jason S. Wagner (jswagner) - Monday, 06 May 2013, 07:55 GMT
I was drafting a wiki article on deploying a SAMBA AD Domain Controller on Arch, but this is blocking.

I took the original files from the SAMBA tarball and made the same changes Mark did to get the service up and running.

Is there something holding this back?
Comment by Tobias Powalowski (tpowa) - Monday, 06 May 2013, 10:13 GMT
No I just need the time to repackage.

Loading...