orthanc
might be able to safely reuse it in Ubuntu (i.e. write this in
/etc/systemd/system/orthanc.service).
[Unit]
Description=Orthanc DICOM server
Documentation=man:Orthanc(1) http://www.orthanc-server.com/
After=syslog.target network.target
[Service]
Type=simple
User=orthanc
Group=orthanc
ExecStart=/usr/sbin/Orthanc /etc/orthanc/
[Install]
WantedBy=multi-user.target
******drop a "service" file[1] in /etc/systemd/system (e.g. orthanc.service).
******Example[2]:
[Unit]
Description=Foo
[Service]
ExecStart=/usr/sbin/foo-daemon
[Install]
WantedBy=multi-user.target
After that, all the usual controls work:
systemctl enable orthanc
The configuration files for Orthanc and its plugins are located in "/etc/orthanc/".
Type "sudo /etc/init.d/orthanc restart" to take new parameters into consideration after modifying the configuration files.
Orthanc --config=Configuration.json
https://github.com/101josh10/Radiology-Information-System
https://groups.google.com/g/orthanc-users/c/7f06iGEEucE
https://forum.dcmtk.org/viewtopic.php?t=4987
https://book.orthanc-server.com/plugins/python.html
...
"Plugins" : [
"libOrthancMongoDBIndex.dylib",
"libOrthancMongoDBStorage.dylib"
],
// MongoDB plugin confihuration section:
"MongoDB" : {
"EnableIndex" : true, // false to use default SQLite
"EnableStorage" : true, // false to use default SQLite
"ConnectionUri" : "mongodb://localhost:27017/orthanc_db",
"ChunkSize" : 261120
},
...
Also it's possible to configure the plugin with separate config options:
"Plugins" : [
"libOrthancMongoDBIndex.dylib",
"libOrthancMongoDBStorage.dylib"
],
"MongoDB" : {
"host" : "customhost",
"port" : 27001,
"user" : "user",
"database" : "database",
"password" : "password",
"authenticationDatabase" : "admin",
"ChunkSize" : 261120
}