<div dir="ltr">Saintly souls helping OLE Nepal install XSCE 5.0 -- Sumit asks that we copy the solution below (and original question at bottom), for the benefit of all-<br><div class="gmail_extra"><br><div class="gmail_quote">
On Thu, Jul 24, 2014 at 5:52 PM, James Cameron <span dir="ltr"><<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="">On Thu, Jul 24, 2014 at 03:50:47AM -0700, Sumit Acharya wrote:<br>
> Thanks for all of your suggestions.<br>
> I worked around the solution to the problem something like this:<br>
><br>
> 1. Created a udev rule that starts a new service when external<br>
> hard-drive is detected<br>
><br>
> KERNEL=="sd?1", SUBSYSTEMS=="scsi", DRIVERS=="sd", ACTION=="add", RUN+="/usr/<br>
> bin/systemctl --no-block start nexc@%k.service"<br>
<br>
</div>For further optimisation in future, this might be reduced to the<br>
SYSTEMD_WANTS or SYSTEMD_USER_WANTS keyword.  I've not tested, but<br>
that's the keyword I saw mentioned by other people in the same<br>
situation.<br>
<div class=""><br>
> 2. From the service called the update-script to run.<br>
><br>
> [Unit]<br>
> Description=Installs NEXC content to the system<br>
> BindsTo=dev-%i.device<br>
><br>
> [Service]<br>
> Type=simple<br>
> ExecStart=/root/nexc-update.sh %I<br>
<br>
</div>Good work!<br>
<div class=""><div class="h5"><br>
--<br>
James Cameron<br>
<a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
</div></div></blockquote></div><br><br>From: <b class="gmail_sendername">Sumit Acharya</b> <span dir="ltr"><<a href="mailto:sumit.acharya@olenepal.org">sumit.acharya@olenepal.org</a>></span><br>Date: Tue, Jul 22, 2014 at 8:30 AM<br>
Subject: [XSCE] systemd-udevd timeout error while running the set of scripts using usbmount<br>To: <a href="mailto:xsce-devel@googlegroups.com">xsce-devel@googlegroups.com</a><br><br>Dear all,<br><br>I
 am currently working in migrating epustakalaya (digital library system)
 from XS-0.7 based schoolserver to fedora-18/XSCE-5.0 based system. So 
far all the contents are running well in the new system. I am facing a 
problem in auto-installing the contents from external hard-drive to the 
system. <br><br>As similar to the earlier NEXS versions, I am trying to 
use the usbmount feature. While the script is running and the contents 
are being  installed, 'systemd-udevd' genarates a timeout error (after 
30 secs of the usb drive plugged in) and the process gets terminated. I 
find a timeout value to be 30 inside /sys/devices/pci0000:00/0000:<div dir="ltr">00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/host6/target6:0:0/6:0:0:0/. Therefore, I added a udev rule to change the timeout value of the device, but that didn't  work.<br>
<br>udev rule:<br>81-nexc.rules<br>KERNEL=="sdb", SUBSYSTEMS=="scsi", DRIVERS=="sd", ACTION=="add", RUN+="/root/NEXC-timeout.sh"<br><br>NEXC-timeout.sh<br>#!/bin/bash<br>test=`echo $(udevadm info -q path -n /dev/sdb1) | sed 's/\/block\/sdb\/sdb1//g'`<br>
echo 120 > /sys$test/timeout<br><br>Next,
 I tried to modify the timeout value by adding following lines to 
/usr/share/usbmount/usbmount script right after mounting the external 
drive, but that doesn't seem to work either.<br>echo 60 > /sys$DEVPATH/../device/timeout<br><br>The timeout values in both cases replace the respective default values, but has no effect in operation. <br><br>What may be the possible ways of fixing this bug or working around the problem? <br>
Is there some other ways of auto-updating the contents from external hard-drive to the schoolserver in XSCE 5.0 ?<br><br>Thanks in advance.<br>Sumit<br><br>Complete error message:<br>Jul 22 17:15:06 schoolserver.test.xsce systemd-udevd[368]: worker [3055] /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb1 timeout; kill it<br>
Jul 22 17:15:06 schoolserver.test.xsce systemd-udevd[368]: seq 2284 '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb1' killed<br>Jul 22 17:15:06 schoolserver.test.xsce systemd-udevd[368]: worker [3055] terminated by signal 9 (Killed)</div>
</div></div>