N.B this startup script assumes that the storage server program
N.B the file On a Linux System
DicomServer
script.
sudo cp dicomServer /etc/init.d/dicomserver
Then, create a symbolic link to it:
cd /etc/rc.d/rc3.d
exists, do:
cd /etc/rc.d/rc3.d; sudo ln -s ../../init.d/dicomserver S91DicomServer
cd /etc/rc3.d
exists, do:
cd /etc/rc3.d; sudo ln -s ../init.d/dicomserver S91DicomServer
StorageServer
is installed in /usr/local/bin; edit
the script dicomserver if it is not.
cd /etc/init.d; ./DicomServer start
# ps -ef | grep StorageServer
root 5354 1 0 16:34:58 pts/2 0:00 /bin/csh /usr/local/bin/StorageServer
root 5357 5345 0 16:35:10 pts/2 0:00 grep StorageServer
On a Mac OS System
Now copy the required file to this folder:
cd /Library/LaunchDaemons
Note: there is a space and a period (".") at the end of the command
above.
sudo cp ~/Desktop/com.xinapse.storageserver.plist .
Note: you will need Administrator rights to perform the above command.
The sudo
command above gives you administrator rights, but you
will be prompted to enter your password.
com.xinapse.storageserver.plist
assumes that you
installed the script StorageServer
in /usr/local/bin
; edit
the script com.xinapse.storageserver.plist
if you installed it elsewhere.
You will also need to edit the StorageServer
script its self, since this also
assumes that you put the scripts in /usr/local/bin
.
# ps -ef | grep StorageServer
0 15 1 0 0:00.01 ?? 0:00.01 /bin/csh /usr/local/bin/StorageServer
0 54 15 0 0:00.01 ?? 0:00.01 /bin/csh /usr/local/bin/RunTool true com.xinapse.apps.convert.StorageServer
0 79 54 0 0:00.79 ?? 0:11.53 /System/Library/Frameworks/JavaVM.framework/Versions/17/Commands/java -Ddongle.debug=true -DOutputType=UNC -DTextMode=true -Dlicense.filename=/Applications/Xinapse/Jim9/license.txt -Dlicense.debug=false -Xms64m -Xmx1024m -classpath /Applications/Xinapse/Jim9/xinapse9.jar:/Applications/Xinapse/Jim9/cli.jar:/Applications/Xinapse/Jim9/itext.jar:/Applications/Xinapse/Jim9/j3d-vrml97.jar:/Applications/Xinapse/Jim9/templates.jar com.xinapse.apps.convert.StorageServer
501 213 184 0 0:00.00 ttys000 0:00.00 grep StorageServer