Commit b2a130ec authored by Andrey Filippov's avatar Andrey Filippov

added imgsrv parameters: '-s /dev/sda2' for fast sending raw ssd data over the network

parent 4e88d416
...@@ -155,7 +155,8 @@ def init_imgsrv(port): ...@@ -155,7 +155,8 @@ def init_imgsrv(port):
Start Image Server (imgsrv), restart lighttpd (for imgsrv?) and initialize exif header template Start Image Server (imgsrv), restart lighttpd (for imgsrv?) and initialize exif header template
@port - int or str @port - int or str
''' '''
shout("imgsrv -p "+str(port)) # shout("imgsrv -p "+str(port))
shout("imgsrv -p "+str(port) + " -s /dev/sda2") # TODO: add calculation of the /dev/sda2?
#restart PHP - it can get errors while opening/mmaping at startup, then some functions fail #restart PHP - it can get errors while opening/mmaping at startup, then some functions fail
shout("killall lighttpd; /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf") shout("killall lighttpd; /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf")
shout("/www/pages/exif.php init=/etc/Exif_template.xml") shout("/www/pages/exif.php init=/etc/Exif_template.xml")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment