ZimbraOsXAutoLauncher StartupItems Script & extras
Posted: Sat Nov 26, 2005 5:45 pm
this is a followup of this thread:
My">http://www.zimbra.com/forums/showthread.php?t=882
My first script Â…
[Working on mac OsX 10.4.3]
Well it took me some timeÂ… And finally made a script to AutoLaunch zimbra @ startup.
I you want to use it: do it at your own risks.
I've not checked security issues yetÂ…and they maybe some regarding your policy as admin
I don't really know how zimbra gets launched on Other Os, but on OsX, @ least, I, have to log in the user zimbra and fire up a terminal window zmcontrol start, to get it launched.
After digging around mostly on Macosxhints.com & Apple.com I have wrote StartupItems.
Now I just power up the Mac and I can go. No need to log in, nor go in the terminal anymoreÂ… I love this.
ZimbraOsXAutoLauncher StartupItems.
you'll download a.dmg file (140kb) with everything inside :
a folder ZIMBRALAUNCH and inside the script and the StartupParameters.plist file. and a Readme file to install it.
I've put it in
/system/Library/StartupItems/ZIMBRALAUNCH/
/system/Library/StartupItems/ZIMBRALAUNCH/ZIMBRALAUNCH
/system/Library/StartupItems/ZIMBRALAUNCH/StartupParameters.plist
you may put them in :(as root)
/Library/StartupItems/ZIMBRALAUNCH/
/Library/StartupItems/ZIMBRALAUNCH/ZIMBRALAUNCH
/Library/StartupItems/ZIMBRALAUNCH/StartupParameters.plist
then in terminal:
cd /system/Library/StartupItems/ZIMBRALAUNCH/
then
chmod 755 ../*
then
chmod +x /ZIMBRALAUNCH
that's it.
# to check if it's working, get a new terminal window and type :
#
sudo SystemStarter start ZIMBRALAUNCH
#
# You should see some stuff on the screen. no need to interact.
#
# Once its Started type :
#
sudo SystemStarter restart ZIMBRALAUNCH
#
# You should see some stuff on the screen. no need to interact.
# I've noticed that when I invoque 'zmcontrol stop', I've always some error displayingÂ… but that's ok.
# it will continue the script and restart tha whole stuff.
# it should and with :
Host macintosh.zimbratester.org
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
spell Running
#
Now you can reboot your mac.
Extras :
I've also made 3 executables that I've put in:
/usr/bin/
I named them:
zmautolaunch -> to launch zimbra (aka zmcontrol start)
zmautostop -> to stop zimbra (aka zmcontrol stop)
zmautostatus -> to check status (aka zmcontrol status)
I hear some of you saying what's the point if it's the same as zmcontrol ?
Well the point is 1: the same as the StartupItems,
I don't want to have to log in as zimbra to launch and check, etcÂ…
And
2) as I've put this files in /usr/bin so it is accessible for everyone who knows the scripts are there (you can put it where you like) and you run it as Your user account no need to log in as zimbraÂ… .
Now, I'm gonna to reinstall 2 or 3 time zimbra, so I can get sure I know the stuff. What I'm gonna do now that I've this scripts is that I'm gonna make the user zimbra with a UID lower than 501 so that it's gonna be invisible at login. A mac could run zimbra on it and user don't even know that it's on.Â…
for example :
I can check with Apple remote Desktop for instance the status of the zimbra server (zmautostatus). and in case restart it(zmautostop - zmautostart).
I'm gonna do a 4th one for restartfunction.
AS I can upload here a file, I've made a .zip
instead of a .dmg (from the finder).
for those that prefer copy-paste-customise Â…
Next post is the code that works like a charm for me.
AGAIN I ain't no programer it took some hours to get it working.
If anyone as improvmentsÂ… go for it.
I also Have some ideas but as everything works here for me, I'll wait a little to test further.
This is very fresh I've been testing this the half day now and as it works I post here and upload the files.
AGAIN BAckup, bla bla, you're warned.
By the way I've scanned with ClamXAV the .zipÂ… but you can still scan it again on your computer.
s3nz3x
opening my files to cut & paste in the next post right now
ZimbraOsXAutoLauncher-0.1.zip
My">http://www.zimbra.com/forums/showthread.php?t=882
My first script Â…
[Working on mac OsX 10.4.3]
Well it took me some timeÂ… And finally made a script to AutoLaunch zimbra @ startup.
I you want to use it: do it at your own risks.
I've not checked security issues yetÂ…and they maybe some regarding your policy as admin
I don't really know how zimbra gets launched on Other Os, but on OsX, @ least, I, have to log in the user zimbra and fire up a terminal window zmcontrol start, to get it launched.
After digging around mostly on Macosxhints.com & Apple.com I have wrote StartupItems.
Now I just power up the Mac and I can go. No need to log in, nor go in the terminal anymoreÂ… I love this.
ZimbraOsXAutoLauncher StartupItems.
you'll download a.dmg file (140kb) with everything inside :
a folder ZIMBRALAUNCH and inside the script and the StartupParameters.plist file. and a Readme file to install it.
I've put it in
/system/Library/StartupItems/ZIMBRALAUNCH/
/system/Library/StartupItems/ZIMBRALAUNCH/ZIMBRALAUNCH
/system/Library/StartupItems/ZIMBRALAUNCH/StartupParameters.plist
you may put them in :(as root)
/Library/StartupItems/ZIMBRALAUNCH/
/Library/StartupItems/ZIMBRALAUNCH/ZIMBRALAUNCH
/Library/StartupItems/ZIMBRALAUNCH/StartupParameters.plist
then in terminal:
cd /system/Library/StartupItems/ZIMBRALAUNCH/
then
chmod 755 ../*
then
chmod +x /ZIMBRALAUNCH
that's it.
# to check if it's working, get a new terminal window and type :
#
sudo SystemStarter start ZIMBRALAUNCH
#
# You should see some stuff on the screen. no need to interact.
#
# Once its Started type :
#
sudo SystemStarter restart ZIMBRALAUNCH
#
# You should see some stuff on the screen. no need to interact.
# I've noticed that when I invoque 'zmcontrol stop', I've always some error displayingÂ… but that's ok.
# it will continue the script and restart tha whole stuff.
# it should and with :
Host macintosh.zimbratester.org
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
snmp Running
spell Running
#
Now you can reboot your mac.
Extras :
I've also made 3 executables that I've put in:
/usr/bin/
I named them:
zmautolaunch -> to launch zimbra (aka zmcontrol start)
zmautostop -> to stop zimbra (aka zmcontrol stop)
zmautostatus -> to check status (aka zmcontrol status)
I hear some of you saying what's the point if it's the same as zmcontrol ?
Well the point is 1: the same as the StartupItems,
I don't want to have to log in as zimbra to launch and check, etcÂ…
And
2) as I've put this files in /usr/bin so it is accessible for everyone who knows the scripts are there (you can put it where you like) and you run it as Your user account no need to log in as zimbraÂ… .
Now, I'm gonna to reinstall 2 or 3 time zimbra, so I can get sure I know the stuff. What I'm gonna do now that I've this scripts is that I'm gonna make the user zimbra with a UID lower than 501 so that it's gonna be invisible at login. A mac could run zimbra on it and user don't even know that it's on.Â…
for example :
I can check with Apple remote Desktop for instance the status of the zimbra server (zmautostatus). and in case restart it(zmautostop - zmautostart).
I'm gonna do a 4th one for restartfunction.
AS I can upload here a file, I've made a .zip
instead of a .dmg (from the finder).
for those that prefer copy-paste-customise Â…
Next post is the code that works like a charm for me.
AGAIN I ain't no programer it took some hours to get it working.
If anyone as improvmentsÂ… go for it.
I also Have some ideas but as everything works here for me, I'll wait a little to test further.
This is very fresh I've been testing this the half day now and as it works I post here and upload the files.
AGAIN BAckup, bla bla, you're warned.
By the way I've scanned with ClamXAV the .zipÂ… but you can still scan it again on your computer.
s3nz3x
opening my files to cut & paste in the next post right now
ZimbraOsXAutoLauncher-0.1.zip