[OS X] Is there a way to autostart dsmc at boot?

dicomhosting

Newcomer
Joined
Feb 13, 2012
Messages
2
Reaction score
1
Points
0
Hi.

Is there a way so dsmc can autostart at boot?
I know there are ways to get dsmc to start when a user login.
However, I have servers where there might be days or weeks before someone log in.

Therefore, I'd like dsmc to autostart at boot so I can, just like my Linux servers, take a backup even if the server have for some reason rebooted or something like that.

I've tried to create a plist. Doesn't seem to work though.

This is how the plist looks like:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>com.ibm.dsmc.incremental</string>
	<key>ProgramArguments</key>
	<array>
		<string>dsmc</string>
		<string>schedule</string>
		<string>-optfile=/Library/Preferences/Tivoli Storage Manager/dsm.opt</string>
	</array>
	<key>QueueDirectories</key>
	<array/>
	<key>RunAtLoad</key>
	<true/>
	<key>StartCalendarInterval</key>
	<dict>
		<key>Hour</key>
		<integer>21</integer>
		<key>Minute</key>
		<integer>0</integer>
	</dict>
	<key>WatchPaths</key>
	<array/>
</dict>
</plist>

I have tried on Snow Leopard (10.6.8.) and Lion (10.7 - 10.7.3)

TSM Client is 6.2.2

Have anyone solved this?
If so, how?


Edit: Have tried to modify the plist so i look like this instead:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>com.ibm.dsmc.incremental</string>
	<key>ProgramArguments</key>
	<array>
		<string>dsmc schedule -optfile=/Library/Preferences/Tivoli Storage Manager/dsm.opt</string>
	</array>
	<key>QueueDirectories</key>
	<array/>
	<key>RunAtLoad</key>
	<true/>
	<key>StartCalendarInterval</key>
	<dict>
		<key>Hour</key>
		<integer>21</integer>
		<key>Minute</key>
		<integer>0</integer>
	</dict>
	<key>WatchPaths</key>
	<array/>
</dict>
</plist>

Don't know if it works just yet.

Thanks
 
Last edited:
I haven't tested this, but like Linux in OSX you can add dsmc to your crontab file.. You might need to use 'sudo' when editing the crontab so it will take effect for the root user.


info from http://hints.macworld.com/article.php?story=20041105070509783 :
There is an easy way to start a program during system boot. Just put this in your crontab:
@reboot /usr/bin/dsmcThe command will be executed on every (re)boot. Crontab can be modified by running
crontab -eMore information about crontab options is available in the man page:
man 5 crontab----------Definitely read the crontab man page..
 
Back
Top