Allow a service to get to USB

I have a python script that runs in the background and handles serial communications on a USB port.
I've never used systemd before but I thought that this would be a great excuse to try it out. Things are working OK - I managed to put in the couple of dependencies I needed, specifically, that it should allow openntpd.service to set the OS clock.
BUT, it's having trouble accessing the serial port. I assume it's one of two problems:
1) I need to do change permissions of my service
2) I need to add another service to "After="
For reference, here's my service so far. Any other general feedback is appreciated!
[Unit]
Description=USB Serial Listener
After= openntpd.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/sh -c /root/USBSerialListener
[Install]
WantedBy=multi-user.target
Note: USBSerialListener is a bash script that pipes my output somewhere for me to check later. Is there a way to code that into the systemd framework?
Last edited by lthiery (2013-06-20 19:58:42)

I tried: systemctl status | grep 'mount'
and found a service called: systemd-remount-fs.service
I made my service run after it... it works but I don't know why and I don't know if its optimal. If somebody knows whats going on I would love to know!

Similar Messages

  • I get a no service msg and a USB connected to itunes icon on the home page. How can i get past this so i can access and unlock my phone?

    i get a no service msg and a USB connected to itunes icon on the home page. How can i get past this so i can access and unlock my phone?

    DFU Mode /  Recovery Mode / Unable to Update or Restore
    http://support.apple.com/kb/HT1808

  • 2012 iMacs do you get a USB with OS X on?

    With the new 2012 iMacs not having a optical drive, do you get a USB with the OSX on it for reinstalling?
    If not, tree is I expect a hidden partition, but what happens if this becomes corrupt, need to upgrade the HDD etc?
    Cheers

    The OS X versions and upgrades are now done Totally on the internet.  No, you do Not get a USB stick with Mountain Lion on it.  The 2012 iMacs have a Mountain Lion Recovery Partition that you can access when rebooting, that allows you to reinstall a fresh copy of ML from the internet instead of from a Disk.  And since Mountain Lion still contains the Time Machine app, it is assumed that you will maintain on ongoing backup to an external hard drive in case your internal hard drive everbecomes corrupted or fails.
    Hope this helps

  • SM:EXEC SERVICES job getting failed in Solution manager

    HI All,
    SM:EXEC SERVICES job getting failed in solution mnager and job log will be fowlloing:
    01-31-2012 19:09:21 Job started
    01-31-2012 19:09:21 Step 001 started (program RDSMOPBACK_AUTOSESSIONS_ALL, variant , user ID BASISUSER)
    01-31-2012 19:09:21 MemSize Begin = 796480   Bytes
    01-31-2012 19:09:21 *******************************
    01-31-2012 19:09:21 MemSize Begin = 1919120   Bytes
    01-31-2012 19:09:23 Solution <000000106120000> "SID..." is being edited (Operations)
    01-31-2012 19:09:23 <000000106120000> "SID..."(Operations)
    01-31-2012 19:09:23 "Create_Periodic_Services" uses = 0  bytes
    01-31-2012 19:09:23 "Create_Periodic_Services" uses = 690  us time
    01-31-2012 19:09:23 Trying to perform session EC2000000001313
    01-31-2012 19:09:24 MODEL_KEY: SID Installation Number: 6  MODEL_MODE: E  MODEL_VERSNR 00001 MODEL_CLASS: EWA Data Model
    01-31-2012 19:09:30 Definition nicht vorhanden
    01-31-2012 19:09:33 Definition nicht vorhanden
    01-31-2012 19:09:45 Internal session terminated with a runtime error (see ST22)
    01-31-2012 19:09:45 Job cancelled
    St22 Dump:
    The exception 'CX_DSVAS_API_CONTEXT_INSTANCE' was raised, but it was not caught
      anywhere along
    the call hierarchy.
    Since exceptions represent error situations and this error was not
    adequately responded to, the running ABAP program 'SAPLDSVAS_PROC' has to be
    terminated.
    Please suggest how to proceed further and provide your valuble inputs
    Thanks
    Nekkalapu

    HI Siva,
    I have done the changes according the note but still same problem.
    Please suggest any other ways to resolve this issue .
    Advance thanks
    Regards
    Nekkalapu

  • Ipod 7th generation. bought it 3 days ago. no problem then but now won't turn on. I keep getting a usb device not recognized (and i keep changing ports to no avail). what to do?

    ipod 7th generation. bought it 3 days ago. no problem then but now won't turn on. I keep getting a usb device not recognized (and i keep changing ports to no avail). what to do?

    wish i can rmber how mine was fixed i think i just waited tried again and likr magic it worked again left itunplugged, i was like you recently boughtand it happened to me, now i have another diffrent promblem with it.

  • I installed iousb family log release osx 10.5.6 and installed on my mac osx 10.5.8. I am trying to log and rfid reader on the usb. Sadly on restart the usb is no longer working. Happily Windows is still running OK. Is there a way 2 get my usb back?

    I installed IOUSB family log release osx 10.5.6 on my mac osx 10.5.8. I am trying to log an rfid reader on the usb. Sadly on restart the usb is no longer working. Happily Windows is still running OK. Is there a way to get my usb back working? And is there a way to navigate in Windows to the file I installed and remove it? Any help appreciated.

    BDAqua wrote: Does OSX boot at all, or not?
    Yes, it does. Right to where I am supposed to log in, but since the USB is not working (either mouse or keyboard), I'm stuck. I have to shut down and restart and boot into windows.

  • My Time Capsule expired and no longer works. My printer (a HP) will now not work as it still wishes to connect through the Time Capsule. It will not allow itself be recognised through a USB connection to my Mac. Anyone got any ideas?

    My Time Capsule expired and no longer works. My printer (a HP) will now not work as it still wishes to connect through the Time Capsule. It will not allow itself be recognised through a USB connection to my Mac. Anyone got any ideas?

    You will need to install the printer on your Mac
    Open System Preferences (gear icon) on the dock
    Open Print & Fax
    Click the + (plus) button at the bottom of the printer list
    Wait for your printer to appear in the next box, then click it to highlight it
    Click Add at the lower right
    Be sure to select the correct printer when you try to print as you will see your printer listed twice. Good idea to make the printer now installed on your Mac the default printer so you do not have to choose which printer to use each time you want to print.
    You can also go into Print & Fax, select the printer associated with the Time Capsule and click the - (minus) button if you want to delete that location.

  • How do I get my USB to wireless printer on a network without a computer?

    If you have a USB to Wireless printer and no computer to use the software to do this and do not want to use the WPS option (or it is not available), then the following method may help.
    This is intended to get a USB to wireless, like the Deskjet 3512 printer, on the wireless network when there is no computer available.  However, this can work from a computer as well if you prefer not to install the software.
    For these steps, I will use an iPad.
    1.  The printer will broadcast a wireless network of its own.  This usually has HP Setup and the model of the printer listed in the network name.  Connect a wireless device to this network.
    2.  Once connected, open the browser.  In my case, this is Safari.
    3.  Enter the 192.168.223.1 address in the address and press go to access the printer's status page.
    4.  Once there, there will be many tabs at the top.  Select Network.
    5.  Select Wireless Setup Wizard.
    6.  Select Next at the bottom.
    7.  It will search for available networks.  Select your network from the list and select next.  The network should be highlighted, select it again if it is not.
    8.  It will ask for the password.  Enter the password and select Next at the bottom.
    9.  The printer should now be connected to the network.  It may take a few minutes to reflect this.  Reconnect the computer or mobile device back to your regular network and it should be good to go.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓
    This question was solved.
    View Solution.

    If you are able to go to other websites, then the iPad is not connected to the printer's network.  The first step is absolutely key for this process to work and that is to connect the iPad to the printer's broadcasted network.
    For the steps to work, the printer will need to be connected to the printer's SSID for the printer's IP address to load.
    While connected to the printer's SSID, there will be no internet connection so no websites will be able to load.
    The steps provided are for mostly newer model printers that have the 192.168.223.1 address reserved in them.  However, older printers use a 169.254.X.X address.
    What model is your printer?  You may need to connect the iPad to the printer and then print a network config page off the printer to get the proper address for the printer.  
    What model is the printer?
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • How do I get my USB accessory to charge?

    QuestionHow do I get my USB accessory to charge? 
    AnswerAter upgrading to Windows 8.1, you may have noticed that a USB device no longer charges via USB like it did in Windows 8 or earlier versions of Windows. This might be related to new power management features introduced in Windows 8.1. To resolve the issue, try obtaining an updated driver for your device by the accessory's manufacturer.
    Alternatively, Microsoft has steps that advanced users can take. For information on this procedure, please see the following article:
    Some USB devices do not recharge in Windows 8.1
    You may also find helpful information in this article:
    How To: Fix USB Problems in Windows 8, Windows 7, and Windows Vista

    Try SMC reset:
    Shut down the computer.
    Unplug the computer's power cord.
    Wait at least fifteen seconds.
    Attach the computer's power cord.
    Wait at least five seconds, then press the power button to turn on the computer.

  • How do I get iPhone USB back to network preferences?

    I (like many others) couldn't get the USB tethering to work after (probably) installing new iTunes 10.7.
    I managed to delete iPhone USB from network preferences before reading all about this kext stuff etc that are being posted here.
    I have now tried:
    - uninstalling iTunes 10.7
    - installing iTunes 10.6.3
    - installing AppleUSBEthernetHost.kext v2.2.0
    - installing AppleUSBEthernetHost.kext v2.3.0
    - installing AppleUSBEthernetHost.kext v2.3.6
    - re-installing iTunes 10.7
    + rebooting / connecting iPhone via USB
    None of these has made iPhone USB come back to network list.
    Any ideas how to get it back?
    I'm running OS X 10.6.8.

    Has everyone else managed to fix this or am I the only one who deleted iPhone USB from network preferences?

  • BPMA services not getting started

    Hi,
    We recently installed Oracle EPM suite 11.1.1.1 in one of our Windows 2003 SP1 Server. The products so far installed are:
    EPM Foundation Services
    Performance Management Architect
    Calculation Manager
    Financial Management
    Workspace
    Financial Reporting
    Smart Space
    However the Performance Management or Dimension Server (Or any related services to BPMA) services doesnt get started. Also we tried to manually start the service by opening the "HyS9BPMA_EventManager.exe" but it gives error
    "Cannot Start Service from the command line or debugger. A windows serrvice must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative tool or the Net START command".
    However the InstallUtil.exe also doesnt solve the purpose.
    Have anybody faced such kind of issues or has a resloution? Kindly provide any pointers.
    regards,
    James

    Hi John,
    Thanks for the prompt reply.
    These are the related services in ServiceManager that I can see:
    Hyperion EPM Architect - .Net JNI Bridge
    Hyperion EPM Architect - Engine Manager
    Hyperion EPM Architect - Event Manager
    Hyperion EPM Architect - Job Manager
    Hyperion EPM Architect - Web Application
    Hyperion EPM Architect Data Synchronization - Web Application
    All these services are started.
    The service Hyperion EPM Architect - Process Manager is not present in these services list. Although the exe file is present in the location:
    *<HYPERION_HOME>\products\Foundation\BPMA\AppServer\DimensionServer\ServerEngine\bin* I can see the file HyS9BPMA_ProcessManager.exe .
    But it doesnt get started.
    I tried reinstalling the BPMA, but no positive result. Do you think I missed something in between.
    Thanks in advance.
    James

  • Hyperion System 9.3.1 Services are getting hang... on AIX box.

    Dear All,
    We have installed & configured Hyperion System 9.3.1 on IBM AIX 5.3 ML-6, 6 dual core CPU & 24GB RAM. Repository database is Oracle 10gR2.
    We have scheduled approx 300 Interactive Reporting Jobs in Workspace which has been associated with external trigger events. Once these jobs get executed their output has been imported in the various folders on Workspace.
    We are getting following errors in <HYPERION_HOME>/log/BIPLUS/ server_messages_IRJobService.log file when these jobs get executed:
    <message><![CDATA[Out of Memory. Advice: Close other applications or windows and try again.]]></message>
    And
    In <HYPERION_HOME>/BIPLUS/logs/ 0_bijobs_stderr.txt getting bellow error:
    *** PROCESS OUT OF MEMORY, EXITING ***
    *** PROCESS OUT OF MEMORY, EXITING ***
    SIGNAL SIGABRT Generated at Wed May 21 16:19:29 2008
    by thread 1287
    +++PARALLEL TOOLS CONSORTIUM LIGHTWEIGHT COREFILE FORMAT version 1.0
    +++LCB 1.0 Wed May 21 16:19:29 2008 Generated by IBM AIX 5.3
    +++ID Node 0 Process 25490 Thread 7
    ***FAULT "SIGABRT - Abort"
    +++STACK
    abort : 0x000000e8
    # At location 0xd015f47c but procedure information unavailable.
    write_string__16IT_CDR_OutStreamFPCc : 0x000001c0
    marshal_request__29IT_GIOP_ClientInterceptorImplFR16IT_CDR_OutStreamPQ2_10IT_Binding13ClientRequestUlT3sPQ2_6IT_IOR16ObjectKeyProfile21IT_GIOP_ResponseFlags : 0
    After this Hyperion Services are getting hang. In Workspace - View Job Status – showing that Jobs are executing.
    Any help would be highly appreciated.
    Regards,
    Manmohan Sharma

    The reason they run quicker the subsequent times, is because the data has already been cached in the system.
    You could try the usual tricks to speed the report up:
    - move items into POV
    - have children and parent in the same row
    - arrange dimensions in inverse outline order
    - remove excessive formatting
    - push report calculations back to the data source
    We have found that using lots of dynamically calculated members also slows down reports, so try and limit the number of these.
    Hope this helps. If not maybe give us an idea of how the report is created to see if other changes could be made.

  • How to get a USB-Serial connector working

    I have a laptop with only USB ports, I'm trying to get a USB Serial connector working. I can't find a good guide on how to do it, I can figure out that i need to enable some sort of kernel options, but I'm not sure about how to go about doing it. Can someone hold my hand and tell me what I need to do to get it working?
    Thanks

    It depends on what kind of USB->Serial you have. Some common ones are:
    cp2101
    ftdi_sio
    pl2303
    And those kernel modules are all included with Arch (along with lots more).
    I'd start by just plugging it in and running dmesg to see if your kernel/udev detected it. If you see something about ttyUSB0 then you got it. Just open that device as you would open a normal serial port.
    If it doesn't report anything, run lsusb and see what kind of chip it has.
    If it does report it, I would use minicom to interact with it.
    (Run "minicom -s" as root and set the device to /dev/ttyUSB0, baud to 9600 (or whatever) 8N1. Turn off Hardware and Software flow control. Finally go into Modem and Dialing and delete the init line (unless you are actually dialing)).

  • Unable to get mouse (USB) or serial working.

    I have a MSI 865P board.
    Ive tried all drivers ive seen this far and am unable to get a USB installed or serial working. Any ideas?

    Well due to the Weak PSU it is making it very difficult for allof your Componants to work together under some Load, as when installing windows, your memory is not recieving enough Power, so therfore the OS is Not installing Properly....The only thing that you can do to remedy the Situation is to Replace the PSU, with a Quality, More Powerful, PSU such as a Enermax 465Watt, or a Antec 480 Watt, Unit Because for about $99US you can get a PSU that you wont have to worry about replacing until you forgot how long you have had it........And the Funny thing is, That the PSU is the Most important componant in the PC, if it does not work, or work well, then rest assured nothing else will ...Plug all of your individual componants into this, and you will be amazed on how much Power you really need >>>>>>>   http://www.adecy.com/psu/   ....................Sean REILLY875

  • How can i get a usb cable on my I mac  GS

    How can i get a usb cable on my i mac Gs i want to know how to do it
    is there any directions to help me out. Thanx

    Well, you posted this question in the iMac forum and since you do not have your system info listed in your signature, we all assumed that you were asking about an iMac - not an eMac. That's why out pics do not make any sense.
    Yes, the eMac has USB ports also. They are the second, third, and fourth ports back from the front - the ones after the small circular headphone style jacks.

Maybe you are looking for

  • Urgent:  making multiple inspection characterstics in QP01 bdc

    Hi, I had made a BDC on QP01 in which i am able to upload 1 line for the inspection characterstic of a single Operation . Now the problem is there are around 10 to 15 lines for the inspection characterstic of a single Operation and i am not able to d

  • Partner in inbound delivery

    Hi, I'm creating an inbound delivery with trx VL31N, I clicked on header button, then I clicked the Partner tab and if I click on Propose alternatives button the system prompts *There are no alternatives available for Vendor X*. I want the system pro

  • URGENT !! Calling a XML document from FORMS 6i

    Hello Friends, I have created a Help system based on a WORD Document for my application in as a XML file . Coudl any of you be kind enough to et me kow how can I invoke this HELP file based on parametes from my application built in FORMS 6i. Its urge

  • Adobe Digital Editions does not turn pages

    I installed Adobe digital editions 3.  No matter what I do it does not turn pages!!! I have checked all FAQ but there is no answer to this errror. the turn page symbol arrow is not even highlighted. Can somebody help please? Leo

  • Some installation files are corrupt. Please download a fresh copy and retry

    Hello, I have installed BusinessObjects XI 4 SP02 on server 2008 R2. BO Client tools with sp02 and Patch 8 is also installed. When tried to install BO Server patch 8 (ENTERPRISE02P_8-10009484) I get this error; "Some installation files are corrupted.