Home › Forums › OS X Server and Client Discussion › Active Directory › launchd as watchdog replacement and smb
- This topic has 2 replies, 2 voices, and was last updated 19 years ago by
pixelgrunt.
-
AuthorPosts
-
April 24, 2006 at 12:30 pm #366029
pixelgrunt
ParticipantI have an XServe running 10.4.6 that shares a few TB via afp and smb. The server is bound to our AD and has been known to work well most of the time. The smb service doesn’t stay running after a reboot and sometimes stops running altogether for seemingly no reason. When I re-start the service, AD single sign on is usually disabled too.
I would like to use launchd to ensure that smb is always running and that SSO is enabled.
Would this be as easy as creating a launchd plist file in /System/Library/LaunchAgents that watches the /usr/bin/smbd process, setting its OnDemand key to false, and loading it into launchd?
I am familiar with the "dsconfigad -enablesso" command, but I’m not sure how to have it run when the smbd process is respawned. Can launchd be used for this too?
Thanks in advance!
April 24, 2006 at 6:56 pm #366033pixelgrunt
ParticipantThanks for the quick response. This is a very well-run site.
We have a sufficiently non-standard AD environment here that just makes life as a Mac technician, let’s say, ‘interesting.’
Here is a snippet of the log.smbd around the time of my reboot this morning:
<snip>
[2006/04/24 07:33:42, 0] /SourceCache/samba/samba-92.19/samba/source/smbd/server.c:main(789)
smbd version 3.0.10 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/24 07:33:43, 0] /SourceCache/samba/samba-92.19/samba/source/libads/kerberos.c:ads_kinit_password(146)
kerberos_kinit_password host/[email protected] failed: Client not found in Kerberos database
[2006/04/24 07:33:43, 0] /SourceCache/samba/samba-92.19/samba/source/printing/nt_printing.c:nt_printing_init(386)
nt_printing_init: error checking published printers: WERR_ACCESS_DENIED
[2006/04/24 07:33:56, 0] /SourceCache/samba/samba-92.19/samba/source/lib/util_sock.c:get_peer_addr(1016)
getpeername failed. Error was Socket is not connected
[2006/04/24 07:33:56, 0] /SourceCache/samba/samba-92.19/samba/source/lib/util_sock.c:write_socket_data(446)
write_socket_data: write failure. Error = Broken pipe
[2006/04/24 07:33:56, 0] /SourceCache/samba/samba-92.19/samba/source/lib/util_sock.c:write_socket(471)
write_socket: Error writing 4 bytes to socket 23: ERRNO = Broken pipe
[2006/04/24 07:33:56, 0] /SourceCache/samba/samba-92.19/samba/source/lib/util_sock.c:send_smb(663)
Error writing 4 bytes to client. -1. (Broken pipe)
[2006/04/24 07:33:58, 0] /SourceCache/samba/samba-92.19/samba/source/lib/util_sock.c:get_peer_addr(1016)
getpeername failed. Error was Socket is not connected
[2006/04/24 07:33:58, 0] /SourceCache/samba/samba-92.19/samba/source/lib/util_sock.c:get_peer_addr(1016)
getpeername failed. Error was Socket is not connected
[2006/04/24 07:33:58, 0] /SourceCache/samba/samba-92.19/samba/source/lib/util_sock.c:write_socket_data(446)
write_socket_data: write failure. Error = Broken pipe
[2006/04/24 07:33:58, 0] /SourceCache/samba/samba-92.19/samba/source/lib/util_sock.c:write_socket(471)
write_socket: Error writing 4 bytes to socket 23: ERRNO = Broken pipe
<snip>Does this give any insight into the cause of our problems? We have had to downgrade other Tiger (G4) XServes here because of this very problem, but that’s not an option here because 10.3 Server doesn’t install on this G5 XServe.
Here is some more of the same log, just before the reboot when the problem was noticed:
[2006/04/14 14:42:42, 0] /SourceCache/samba/samba-92.19/samba/source/smbd/service.c:set_current_service(51)
chdir (/Volumes/VideoXServeRAID1/Video Lab Share) failed
[2006/04/14 14:42:42, 0] /SourceCache/samba/samba-92.19/samba/source/smbd/service.c:set_current_service(51)
chdir (/Volumes/VideoXServeRAID1/Video Lab Share) failed
[2006/04/21 15:28:30, 0] /SourceCache/samba/samba-92.19/samba/source/lib/util_sock.c:read_socket_data(400)
read_socket_data: recv failure for 4. Error = Connection reset by peer
[2006/04/21 21:53:48, 0] /SourceCache/samba/samba-92.19/samba/source/lib/util_sock.c:read_socket_data(400)
read_socket_data: recv failure for 4. Error = Operation timed out
[2006/04/22 13:42:01, 0] pdb_ods.c:odssam_getsampwnam(2329)
odssam_getsampwnam: [0]get_sam_record_attributes dsRecTypeStandard:Users no account for ‘video lab user’!
[2006/04/22 13:50:41, 0] pdb_ods.c:odssam_getsampwnam(2329)
odssam_getsampwnam: [0]get_sam_record_attributes dsRecTypeStandard:Users no account for ‘video lab user’!
[2006/04/22 13:51:15, 0] pdb_ods.c:odssam_getsampwnam(2329)
odssam_getsampwnam: [0]get_sam_record_attributes dsRecTypeStandard:Users no account for ‘fcp’!
[2006/04/24 07:33:42, 0] /SourceCache/samba/samba-92.19/samba/source/smbd/server.c:main(789)
smbd version 3.0.10 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004I’m still interested in getting launchd to function as a watchdog replacement.
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed