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-
On Thu, Jul 24, 2014 at 5:52 PM, James Cameron <qu...@laptop.org> wrote: > On Thu, Jul 24, 2014 at 03:50:47AM -0700, Sumit Acharya wrote: > > Thanks for all of your suggestions. > > I worked around the solution to the problem something like this: > > > > 1. Created a udev rule that starts a new service when external > > hard-drive is detected > > > > KERNEL=="sd?1", SUBSYSTEMS=="scsi", DRIVERS=="sd", ACTION=="add", > RUN+="/usr/ > > bin/systemctl --no-block start nexc@%k.service" > > For further optimisation in future, this might be reduced to the > SYSTEMD_WANTS or SYSTEMD_USER_WANTS keyword. I've not tested, but > that's the keyword I saw mentioned by other people in the same > situation. > > > 2. From the service called the update-script to run. > > > > [Unit] > > Description=Installs NEXC content to the system > > BindsTo=dev-%i.device > > > > [Service] > > Type=simple > > ExecStart=/root/nexc-update.sh %I > > Good work! > > -- > James Cameron > http://quozl.linux.org.au/ > From: Sumit Acharya <sumit.acha...@olenepal.org> Date: Tue, Jul 22, 2014 at 8:30 AM Subject: [XSCE] systemd-udevd timeout error while running the set of scripts using usbmount To: xsce-de...@googlegroups.com Dear all, 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. 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: 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. udev rule: 81-nexc.rules KERNEL=="sdb", SUBSYSTEMS=="scsi", DRIVERS=="sd", ACTION=="add", RUN+="/root/NEXC-timeout.sh" NEXC-timeout.sh #!/bin/bash test=`echo $(udevadm info -q path -n /dev/sdb1) | sed 's/\/block\/sdb\/sdb1//g'` echo 120 > /sys$test/timeout 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. echo 60 > /sys$DEVPATH/../device/timeout The timeout values in both cases replace the respective default values, but has no effect in operation. What may be the possible ways of fixing this bug or working around the problem? Is there some other ways of auto-updating the contents from external hard-drive to the schoolserver in XSCE 5.0 ? Thanks in advance. Sumit Complete error message: 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 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 Jul 22 17:15:06 schoolserver.test.xsce systemd-udevd[368]: worker [3055] terminated by signal 9 (Killed)
_______________________________________________ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel