Starting the DICOM Storage Server on Bootup
In order for your computer to act as a DICOM storage server, you will normally want to start the StorageServer program on reboot. Follow the instructions below for Linux systems or Apple Macs.
On a Linux System
-
Log into your computer as root.
-
Create a new user called "dicom", which has write permission to write to the image storage folder that is configured in the
DicomServerscript. -
Click right on dicomserver and select "Save Link As ...". Save the file to a convenient location, such as your Desktop.
-
Copy this script into a folder containing the items that will be executed on system reboot.
sudo cp dicomserver /etc/init.d/dicomserver
Then, create a symbolic link to it:- If the directory
cd /etc/rc.d/rc3.d
exists, do:cd /etc/rc.d/rc3.d; sudo ln -s ../../init.d/dicomserver S91DicomServer - If, instead, the directory
cd /etc/rc3.d
exists, do:cd /etc/rc3.d; sudo ln -s ../init.d/dicomserver S91DicomServer
N.B this startup script assumes that the storage server program
StorageServeris installed in /usr/local/bin; edit the script dicomserver if it is not. - If the directory
-
Make sure that new script is executable by root.
-
Start the script by hand to make sure that is correctly configured:
cd /etc/init.d; ./DicomServer start -
If all is well, reboot your system and check the StorageServer daemon is running:
# 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 -
You're done. The StorageServer will start up automatically every time your computer reboots. Note, however, that your computer won't receive images from a remote DICOM server if it is turned off!
On a Mac OS System
-
Click right on com.xinapse.storageserver.plist and select "Download Linked File". Save the file to a convenient location, such as your Desktop.
-
Open a terminal window and go to the location where this file needs to be copied.
cd /Library/LaunchDaemonsNow copy the required file to this folder:
sudo cp ~/Desktop/com.xinapse.storageserver.plist .Note: there is a space and a period (".") at the end of the command above.
Note: you will need Administrator rights to perform the above command. Thesudocommand above gives you administrator rights, but you will be prompted to enter your password.N.B the file
com.xinapse.storageserver.plistassumes that you installed the scriptStorageServerin/usr/local/bin; edit the scriptcom.xinapse.storageserver.plistif you installed it elsewhere. You will also need to edit theStorageServerscript its self, since this also assumes that you put the scripts in/usr/local/bin. -
Reboot your system and check the StorageServer daemon is running:
# 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/Jim10/license.txt -Dlicense.debug=false -Xms64m -Xmx1024m -classpath /Applications/Xinapse/Jim10/xinapse10.jar:/Applications/Xinapse/Jim10/cli.jar:/Applications/Xinapse/Jim10/itext.jar:/Applications/Xinapse/Jim10/j3d-vrml97.jar:/Applications/Xinapse/Jim10/templates.jar com.xinapse.apps.convert.StorageServer 501 213 184 0 0:00.00 ttys000 0:00.00 grep StorageServer -
You're done. The StorageServer will start up automatically every time your computer reboots. Note, however, that your computer won't act as a dicom storage server if it is turned off!