[Samba] AIX starting and stopping samba from command line
William Jojo
w.jojo at hvcc.edu
Fri Jun 19 15:02:57 GMT 2009
Tim Evans wrote:
> BeefStu BeefStu wrote:
>> All:
>>
>>
>>
>> I am running on an AIX 5.3 platform and I am looking to see if
>> anybody has a script similar to this (see below) that will work under
>> AIX.
>>
>>
>>
>> My goal is, on boot up I want to have samba started automatically.
>> Can somebody let me what I have to do (on AIX) for this to happen.
>
You can try the following (from several sources)
/usr/bin/mkssys -s nmbd -p /opt/pware/sbin/nmbd -a '-F -s /opt/pware/lib/smb.conf' -u 0 -S -n 15 -f 9 -R -G samba
/usr/bin/mkssys -s smbd -p /opt/pware/sbin/smbd -a '-F -s /opt/pware/lib/smb.conf' -u 0 -S -n 15 -f 9 -R -G samba
/usr/bin/mkssys -s smbd -p /opt/pware/sbin/winbindd -a '-F -s /opt/pware/lib/smb.conf' -u 0 -S -n 15 -f 9 -R -G samba
This gives you the ability to do::
startsrc -s smbd
stopsrc -s winbindd
stopsrc -g samba
startsrc -g samba
Assuming, of course, that you want to use the IBM way of managing daemons with SRC.
Then you could add "startsrc -g samba" to inittab like:
samba:2:once:/usr/bin/startsrc -g samba >/dev/console 2>&1
This can be done with:
mkitab "samba:2:once:/usr/bin/startsrc -g samba >/dev/console 2>&1"
Just some thoughts...
Cheers,
Bill
> We start it from the /etc/rc.tcpip script.
More information about the samba
mailing list