Changeset 343


Ignore:
Timestamp:
Oct 30, 2009, 12:37:08 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

smb.cmd Ver. 3.1.4

File:
1 edited

Legend:

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

    r314 r343  
    1 /* Samba Server for eCS (OS/2) init script Version 3.1.3
     1/* Samba Server for eCS (OS/2) init script Version 3.1.4
    22   Copyright (C) netlabs.org 2007-2009
    33
     
    298298    samba.!lock_dir   = translate(IniGet("lock directory", "global", samba.!smbconf),'\','/')
    299299    samba.!debuglevel = IniGet("log level", "global", samba.!smbconf)
     300    if samba.!debuglevel = "" then samba.!debuglevel = "0"
    300301
    301302    /* make sure these directories exist */
     
    324325    if running.!smbd = 1 & (svc = "SMBD" | svc = "") then do
    325326        samba.!bin'\smbcontrol.exe smbd shutdown >' samba.!log_path'\log.smbd.shtdn 2>&1'
    326         ok = SysFileDelete(ETC'\samba\pid\smbd*pid')
     327        ok = SysFileDelete(ETC'\samba\pid\smbd.pid')
    327328        ok = SysSleep(options.!delay)
    328329        ok = _SambaRunning()
     
    336337    if running.!nmbd = 1 & (svc = "NMBD" | svc = "") then do
    337338        samba.!bin'\smbcontrol.exe nmbd shutdown >' samba.!log_path'\log.nmbd.shtdn 2>&1'
    338         ok = SysFileDelete(ETC'\samba\pid\nmbd*pid')
     339        ok = SysFileDelete(ETC'\samba\pid\nmbd.pid')
    339340        ok = SysSleep(options.!delay)
    340341        ok = _SambaRunning()
     
    348349    if running.!winb = 1 & (svc = "WINBINDD" | svc = "") then do
    349350        samba.!bin'\smbcontrol.exe winbindd shutdown >' samba.!log_path'\log.winbindd.shtdn 2>&1'
    350         ok = SysFileDelete(ETC'\samba\pid\winbindd*pid')
     351        ok = SysFileDelete(ETC'\samba\pid\winbindd.pid')
    351352        ok = SysSleep(options.!delay)
    352353        ok = _SambaRunning()
     
    415416    if running.!smbd = 0 & (svc = "SMBD" | svc = "") then do
    416417        /* Just to be sure - this pid file should not be there anyway! */
    417         ok = SysFileDelete(ETC'\samba\pid\smbd*pid')
     418        ok = SysFileDelete(ETC'\samba\pid\smbd.pid')
    418419        ok = charout(, '  SMBD:     ')
    419420        /* Do not add path or .exe to smbd here!!! */
     
    423424    if running.!nmbd = 0 & (svc = "NMBD" | svc = "") then do
    424425        /* Just to be sure - this pid file should not be there anyway! */   
    425         ok = SysFileDelete(ETC'\samba\pid\nmbd*pid')
     426        ok = SysFileDelete(ETC'\samba\pid\nmbd.pid')
    426427        ok = charout(, '  NMBD:     ')
    427428        /* Do not add path or .exe to nmbd here!!! */
     
    431432    if haveWinbindd & running.!winb = 0 & (svc = "WINBINDD" | svc = "") then do
    432433        /* Just to be sure - this pid file should not be there anyway! */   
    433         ok = SysFileDelete(ETC'\samba\pid\winbindd*pid')
     434        ok = SysFileDelete(ETC'\samba\pid\winbindd.pid')
    434435        ok = charout(, '  WINBINDD: ')
    435436        /* Do not add path or .exe to winbindd here!!! */
Note: See TracChangeset for help on using the changeset viewer.