Ignore:
Timestamp:
Jul 9, 2012, 11:22:56 AM (13 years ago)
Author:
Herwig Bauernfeind
Message:

smb.cmd 3.1.6: Fix: Also look into smb.cmd's directory for smbd.exe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/scripts/smb_init/smb.cmd

    r343 r704  
    1 /* Samba Server for eCS (OS/2) init script Version 3.1.4
    2    Copyright (C) netlabs.org 2007-2009
     1/* Samba Server for eCS (OS/2) init script Version 3.1.6
     2   Copyright (C) netlabs.org 2007-2012
    33
    44   This program is free software; you can redistribute it and/or modify
     
    176176    /* smbd.exe */
    177177    samba.!smbd = ""
     178    if samba.!smbd = "" then do /* in smb.cmd's directory? */
     179        ok = SysFileTree(samba.!tools'\smbd.exe', exist.,'FO')
     180        if exist.0 = 1 then samba.!smbd = exist.1
     181    end
    178182    if samba.!smbd = "" then do /* in current directory? */
    179183        ok = SysFileTree('.\smbd.exe', exist.,'FO')
     184        if exist.0 = 1 then samba.!smbd = exist.1
     185    end
     186    if samba.!smbd = "" then do /* in RPM/YUM/FHS tree */
     187        ok = SysFileTree(UnixRoot'\usr\bin\smbd.exe', exist.,'FO')
    180188        if exist.0 = 1 then samba.!smbd = exist.1
    181189    end
     
    420428        /* Do not add path or .exe to smbd here!!! */
    421429        'detach smbd'
    422         ok = SysSleep(0.1)
     430        do while \_SambaRunning()
     431            ok = SysSleep(0.1)
     432        end
    423433    end
    424434    if running.!nmbd = 0 & (svc = "NMBD" | svc = "") then do
Note: See TracChangeset for help on using the changeset viewer.