Changeset 251


Ignore:
Timestamp:
Jun 5, 2009, 8:27:16 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

smb.cmd: Make kill feature more verbose

Location:
branches/scripts/smb_init
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/scripts/smb_init/readme.smb_init

    r193 r251  
    1 Samba Server for eCS (OS/2) init script Version 3.0.2
     1Samba Server for eCS (OS/2) init script Version 3.0.3
    22=====================================================
    33
  • TabularUnified branches/scripts/smb_init/smb.cmd

    r193 r251  
    280280        ok = _SambaRunning()
    281281        if words(pids.!smbd) > 0 then do I = 1 to words(pids.!smbd)
    282             say "Trying to kill smbd.exe "PRKillProcess("1", word(pids.!smbd,I))
     282            call charout ,"Trying to kill smbd.exe PID "word(pids.!smbd,I)
     283            ok = PRKillProcess("1", word(pids.!smbd,I))
     284            if ok = 0 then say ", success!"; else say ", error "ok
    283285        end
    284286    end
     
    290292        ok = _SambaRunning()
    291293        if words(pids.!nmbd) > 0 then do I = 1 to words(pids.!nmbd)
    292             say "Trying to kill nmbd.exe "PRKillProcess("1", word(pids.!nmbd,I))
     294            call charout ,"Trying to kill nmbd.exe "word(pids.!nmbd,I)
     295            ok = PRKillProcess("1", word(pids.!nmbd,I))
     296            if ok = 0 then say ", success!"; else say ", error "ok
    293297        end
    294298    end
     
    300304        ok = _SambaRunning()
    301305        if words(pids.!winb) > 0 then do I = 1 to words(pids.!winb)
    302             say "Trying to kill winbindd "PRKillProcess("1", word(pids.!winb,I))
     306            call charout ,"Trying to kill winbindd "word(pids.!winb,I)
     307            ok = PRKillProcess("1", word(pids.!winb,I))
     308            if ok = 0 then say ", success!"; else say ", error "ok
    303309        end
    304310    end
Note: See TracChangeset for help on using the changeset viewer.