Changeset 283 for branches/scripts/smb_init
- Timestamp:
- Jun 24, 2009, 2:42:01 PM (16 years ago)
- Location:
- branches/scripts/smb_init
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/scripts/smb_init/readme.smb_init
r251 r283 1 Samba Server for eCS (OS/2) init script Version 3. 0.31 Samba Server for eCS (OS/2) init script Version 3.1.0 2 2 ===================================================== 3 3 … … 26 26 smb {start|stop|restart|reload|status|test} 27 27 28 In addition a plugin feature found in IBM's TCPSTART.CMD is present in29 smb.cmd:28 In addition a similar plugin feature found in IBM's TCPSTART.CMD is present 29 in smb.cmd: 30 30 31 31 - If a file named B4SMB.CMD is found in the Samba directory, it will be run … … 35 35 after the Samba services have been stopped. 36 36 37 smb.cmd is also used by SWAT and smbmon.exe to start or stop the Samba daemons 37 smb.cmd is also used by SWAT and smbmon.exe to start or stop the Samba daemons. 38 38 39 39 In addition Samba daemons that refuse to stop peacefully are killed using -
branches/scripts/smb_init/smb.cmd
r268 r283 1 /* Samba Server for eCS (OS/2) init script Version 3. 0.41 /* Samba Server for eCS (OS/2) init script Version 3.1.0 2 2 Copyright (C) netlabs.org 2007-2009 3 3 … … 60 60 say 'Samba services are not running. Aborting...' 61 61 ok = directory(OldDir) 62 exit - 362 exit -4 63 63 end 64 64 samba.!bin'\smbstatus.exe smbd 2>NUL' … … 156 156 end 157 157 UnixETC = UnixRoot'\etc' 158 /* Make sure it exists */ 159 ok = SysMkDir(UnixETC) 158 160 159 161 /* Find out various directories */ … … 198 200 samba.!smbconf = stream(ETC'\samba\smb.conf','c','query exists') 199 201 if samba.!smbconf = "" then do 200 say ETC'\samba\smb.conf is missing. Aborting...' 202 say ETC'\samba\smb.conf is missing.' 203 say 'Try running sscc.exe /install to create it! Aborting...' 201 204 exit -2 205 end 206 207 /* Check if kLIBC password files exist */ 208 samba.!masterpasswd = stream(unixetc'\master.passwd','c','query exists') 209 if samba.!masterpasswd = "" then do 210 say unixetc'\master.passwd is missing.' 211 say 'Try running sscc.exe /install to create it! Aborting...' 212 exit -3 213 end 214 215 samba.!pwddb = stream(unixetc'\pwd.db','c','query exists') 216 if samba.!pwddb = "" then do 217 say unixetc'\pwd.db is missing.' 218 say 'Try running usermod to create it. Aborting...' 219 exit -3 220 end 221 222 samba.!spwddb = stream(unixetc'\spwd.db','c','query exists') 223 if samba.!spwddb = "" then do 224 say unixetc'\spwd.db is missing.' 225 say 'Try running usermod to create it. Aborting...' 226 exit -3 202 227 end 203 228 … … 257 282 samba.!lock_dir = translate(IniGet("lock directory", "global", samba.!smbconf),'\','/') 258 283 samba.!debuglevel = IniGet("log level", "global", samba.!smbconf) 284 285 /* make sure these directories exist */ 286 ok = SysMkDir(samba.!log_path) 287 ok = SysMkDir(samba.!lock_dir) 259 288 260 289 ok = value("SMB_LOGS",samba.!log_path,"OS2ENVIRONMENT")
Note:
See TracChangeset
for help on using the changeset viewer.