RTorrent+Screen doesn't start properly from systemd

I decided to finally upgrade my system from init.d to systemd.
Pretty much everything went smoothly except my rtorrent+screen startup.
I'm using mostly the ruTorrent webui for controlling rtorrent. I'm using a service that starts rTorrent in a detatched GNU screen.
This is my problem, when I start the service, rtorrent is just king of sleeping and not responding/doesn't create a SCGI socket I use to connect my webui to the rtorrent client.
If I attach the screen the problem goes away and rtorrent resumes normal operation. If I run the exact same commands through a shell, it also works perfectly.
I've also tried to run a basic screen as a service with rtorrent in my ~/.screenrc .
Can anyone help? I've got no idea how to do debug this more than checking so that rtorrent and the service are running.
This is my service:
[Unit]
Description=rTorrent
[Service]
Type=forking
ExecStart=/usr/bin/screen -d -m -S rtorrent /usr/bin/rtorrent
ExecStop=/usr/bin/killall -w -s 2 rtorrent
[Install]
WantedBy=multi-user.target
My systemctl status output:
rtorrent.service - rTorrent
Loaded: loaded (/etc/systemd/system/rtorrent.service; enabled)
Active: active (running) since Thu 2013-01-24 21:50:10 CET; 54s ago
Process: 1130 ExecStart=/usr/bin/screen -d -m -S rtorrent /usr/bin/rtorrent (code=exited, status=0/SUCCESS)
Main PID: 1131 (screen)
CGroup: name=systemd:/system/rtorrent.service
1131 /usr/bin/SCREEN -d -m -S rtorrent /usr/bin/rtorrent
1133 rtorrent
Jan 24 21:50:10 Laptop systemd[1]: Starting rTorrent...
Jan 24 21:50:10 Laptop systemd[1]: Started rTorrent.
ps -aux | grep rtorrent output
root 1131 0.0 0.0 15560 1008 ? Ss 21:50 0:00 /usr/bin/SCREEN -d -m -S rtorrent /usr/bin/rtorrent
root 1133 0.0 0.1 201528 5172 pts/0 Ssl+ 21:50 0:00 rtorrent

This works for me, YMMV:
/etc/systemd/system/screen.service
[Unit]
Description=Detached screen session
After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
User=tomk
ExecStart=/usr/bin/screen -dm
[Install]
Wants=network.target
WantedBy=multi-user.target
~/.screenrc
screen -t rtorrent 5 /usr/bin/rtorrent

Similar Messages

  • My palm m105's touch screen doesn't work properly after a sync.

    I dug out my old m105, put new batteries in and start it. On first launch it auto runs the alignment tool, and after touching all the points it goes to the main screen and works fine. No problem till here.
    Now, I plug it into my old computer which still has the palm software with my apps, and I run the sync operation (from the palm device sync manager, cause I lost my cradle and I'm connected via the serial cable), and it syncs fine BUT, here comes the problem, when it finishes the sync (successfully) the touch screen is all misaligned. I can't go back to the home screen or do anything useful.
    My palm m105's touch screen doesn't work properly after a sync.
    I dug out my old m105, put new batteries in and start it. On first launch it auto runs the alignment tool, and after touching all the points it goes to the main screen and works fine. No problem till here.
    Now, I plug it into my old computer which still has the palm software with my apps, and I run the sync operation (from the palm device sync manager, cause I lost my cradle and I'm connected via the serial cable), and it syncs fine BUT, here comes the problem, when it finishes the sync (successfully) the touch screen is all misaligned. I can't go back to the home screen or do anything useful.
    Thanks in advance!
    Post relates to: Palm m105
    Post relates to: Palm m105

        Maldoman578,
    Let's help solve this mystery together! Is your screen freezing after every reboot? Is there any physical/liquid damage on the device? When did this issue begin? Did you notice this after a recent update or application download?
    EfrainM_VZW
    Follow us on Twitter @VZWSupport

  • My Ipod's screen doesn't start.

    Hi,
    I have an Ipod nano 6th generation (with the touch screen) and one day it decided for no reason to not start. First I thought the battery was dead. But after 6 straight hours of recharge from a wall plug, it wouldn't start anyway. I tried to plug it onto my computer and Itunes could easily recognize it and sync it. But the screen of my Ipod wasn't turning on at any time even if my computer detected it.
    I tried to restore it, but the problem stayed and I tried many solutions there were on the little booklet  and on the Apple's website (like pressing the power button and the ''-'' button for 6 seconds). Also, I searched throughout the forum but I didn't find any people who had the same problem.
    I have an Acer computer with windows 7, but I don't think the problem comes from my computer because it did its job very well, it is just that the screen doesn't start at all.
    So, should I return it to the store where I bought it or there is still something to do for that?
    Any help would be very appreciated.
    Felix

    oh and by the way, the day before it was working very well and I didn't broke it up. I mean I didn't overheated or dropped water on it, etc. It just started to not work for no apparent reason.

  • HT4623 My iPhone 4S speaker suddently doesn't work properly from one week ago? How I can do? 4s is still under warranty?

    My iPhone 4S speaker suddently doesn't work properly from one week ago? How I can do? 4s is still under warranty?

    Have you tried any troubleshooting steps, like resetting you iPhone, for example?  Or restoring it?
    If not by all means do so because your problem could be caused by software glitches that could be solved resetting or restoring.
    Warranty is for one year from date of purchase and two years if you bought Apple Care at the time of purchase. If your iPhone has a hardware issue within warranty, it would be replaced by Apple.  If it is already out of warranty, you might be eligible for an out of warranty replacement where you pay a much lower amount but this varies according to the country and currency, so it is better to check with Apple or with an authorized reseller.
    You could check your warranty status here:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • [SOLVED] rtorrent&screen don't start at boot time

    Hello. I use rc-script from ArchWiki to start screen with rtorrent (http://wiki.archlinux.org/index.php/RTo … ith_screen), but at boot time neither rtorrent nor screen start, although script prints "[DONE]". If I login as root and start script manually it works perfect, but I can't understand why it doesn't start automatically.
    Please, help.
    P.S. Of course script was added to DAEMONS array in rc.conf.
    Last edited by Atragor (2009-03-29 11:56:10)

    jordz, adding command to rc.local didn't change anything.
    LeoSolaris, yes, script is executable, and according to screen's man page:
    -d -m      Start screen in "detached" mode. This creates a new session but doesn't  attach  to  it.  This  is  useful  for  system startup scripts.
    I think it's something that could be called "daemon mode".
    Maybe some environment variables must be set in order to execute screen and rtorrent? I've tried to set HOME manually but it didn't help.

  • Screen Saver has started pulling from Wallpaper file AND I-Photo

    Suddenly for no apparent reason, Screen Saver has started pulling photos from I-Photo as well as my Wallpaper File.
    I do NOT want it to display from the I-Photo library.
    In the Source option, I have selected Wallpaper (the name of the file).    Also have it coming on in 20 minutes and randomly.  Display is Origami.
    Any suggestions?

    Hey BD!
    Thanks for response. Approaching Sleep Time There. I am kinda weird tonight.

  • Indesign CS5 doesn't start properly

    My Indesign CS5 doesn't start.
    I can't see the program start, but if i go to the "active processes management" i can see it running.
    So, the program starts but i can't see his interface.
    My OS is W7 professional.
    This problem is affecting me since one week.
    I tried to uninstall and then reinstall it without results.
    PS. I have a Premium CS5 Suite, and the other programs works finely.
    Thanks for the support

    Ciao Peter,
    finally i got it! The problem was about the ID focus, where the application load.
    I have two monitor, managed by nView desktop manager. So ID was loaded far from my desktop, i don't know why.
    But most strange of all, ID was not showed in the application tab in the "active processes management" .
    So i disabled nview manager and ID appear.
    But this is a big bug of ID, which Adobe must manage.
    Thank you so much for your help.
    Ciao, Luca

  • Edge Animation doesn't start properly in Chrome/Safari

    I developed an animated intro sequence at the following address quite some time ago with Edge when it was still in Adobe Labs: http://www.gdc-corp.com . It seemed to work fine when developed, but it was just pointed out to me that the animation sequence automatically starts as it should in Internet Explorer on the PC, but on Chrome and Safari, at least on the mac, when you first hit the page, the animation doesn't run. If you refresh the browser or back out to another page a revisit the page, the animation starts automatically as it should.
    Anyone have a quick thought on why and how to fix?

    I just did a simple test with an svg/ gradient, exported from Illustrator - defalt svg settings.
    Imported (File > Import) into an Edge project file and it works, shows properly.
    Is this the process you went through to add the svg file? When imported does the svg look as it should within the Edge Animate stage, at this point?
    I then opened Dw, new html file; Insert > Media > Edge .oam. It imports properly.
    Enable Live mode and I can see the edge file as well as the svg in all its gradient glory.
    As for the Active X prompt, that is common IF you double click the .html to view or Preview in Browser from Dw because its not within a webserver space.
    Darrell

  • Macbook Pro Shuts Down / MacBook Pro Doesn't Start Properly

    I just had this problem today. When I tried to wake the macbook pro back from sleep, it didn't wake up, after closing and reopening the screen several times. Thus, I forced quit it by holding the switch button. Now, when I tried to start the macbook pro, the computer automatically shuts down in less than 3 seconds. I have tried resetting the PRAM and all that stuff but they don't seem to work. Has anyone had this issue before?

    I am having this exact problem. In my case, I shut down my MBP before going to work. Once I reached work, I tried restarting and it shuts down almost immediately. I've already tried most solutions, but as I am at work, I have not been able to try the cd solution. Any help would be welcome as I do not want to have to reinstall the OS.

  • My Tecra 9100 doesn`t start properly

    Hello everyone,
    please give me some advise.
    Last time i used my tecra 9100 it was working just fine. Then yesterday I turned it on, it seem to boot up properly for the first few seconds (light blinking showing Hard disk is doing something) and then i heard a beep and although power was on, hard disk light went off.
    Also during all that time, my screen was completely black as when the laptop is off and didnt change at all.
    What is going on? i cant figure out if there is a problem with my screen or the actual hard disk (??)
    i of course rebooted and rebooted and no change.
    Any help would be greatly appreciated

    Hi Hans,
    Do you see the Toshiba 'splash' screen when you first power on your notebook ? If you do then the display is obviously not faulty and the problem will be with your hard drive. If your screen remains blank from the moment that you power on then it is more likely that you display is at fault.
    There could, of course also be problems with other components which are causing the symptoms that you describe, such as a failed mainboard.
    HTH

  • Blue flashing screen - doesn't start up

    I just had new RAM replaced on my iMac due to faulty RAM under waranty, and everything seemed to be working fine. I downloaded some updates today and restarted the computer. Now on start up the computer loads to an alternating blue screen and won't load.
    When I restared the computer, I had just completed a back up, and left the external hard drive attached. Could this have created a problem?
    I have tried to do the basic troubleshooting start ups but have had no luck. Do I need to do a reinstall off disc? If I do, do I loose everything that's on the hard drive?
    Any suggestions on what could be the problem?

    Hello s:
    Welcome to Apple discussions.
    I would take the computer back to whoever installed the RAM (under warranty). From what you posted, nothing you did should have caused a problem.
    When I restared the computer, I had just completed a back up, and left the external hard drive attached. Could this have created a problem?
    I seriously doubt it. My external drives are always connected.
    Before you do anything else, I really do think that whoever replaced the RAM should fix the problem for you. There could, of course, be something else, but that is a good place to start.
    Barry

  • Occasionally my screen doesn't refresh properly...

    I have a main menu screen that is list of open sales orders and a list of actions (scripts) that can be performed on the selected order.
    One of the actions takes a billing block off of the sales order and SHOULD remove it from the list.
    Very occasionally it does take the block off but leaves the entry on the screen (but you can't make it active) as in the case below...
    The script refreshes the screen and then puts the successful update message to it but the unblocked message remains on the open order list. The program that this flavour belongs to is a customer program and screens orders that do not have a block set.
    Can anyone suggest how this could happen. Is it some sort of  caching issue or a timing issue between the custom program and the time it takes to physically take the block off the sales doc (VA02)?
    Here's the tail end of the script ...

    The list content is driven by the backend transaction' logic, i.e. the Personas Refresh Screen action isn't going to actually refresh the list screen. So in this case, there should be a backend command refreshing the list explicitly in order to remove the items that have already been processed.

  • Custom Screen doesn't display properly

    I am on SRM 5.5 and I have created a custom screen with a custom field in all the proper structures it's supposed to be in.  The screen has been generated into HTML and it has a service.  I am calling the screen in the BADI BBP_CUF_BADI.  The field is showing properly, but my problem is that my custom screen is not displaying where I expect.  If I generate the HTML template as a type classic, it doubles my fields when it displays and it shows them at the top of the header above all the other standard fields.
    If I create my HTML template as WEBGUI, it covers the entire Header section and displays partly at the top over the standard buttons on the screen and partly at the bottom after the last header field.  I presume the custom screen should display after the last header field.  Does anyone know why the screens behave differently when I generate the templates as Classic (shows twice) versus WEBGUI and does anyone know what I might be doing wrong?
    Points will be rewarded.
    Thanks,
    Marty

    Hi
    There seems like a bug in the SRM system...
    Have you created a bespoke service in this case ? Please give some more insights in next reply ?
    Meanwhile, go through the links which might help ->
    Contract Custom fields are not showing
    Re: New Tab in Bid Process Screen
    Re: New screen with table control information in Process Bid Invitation
    BBP_CUF_BADI_2
    Regards
    - Atul

  • Droid bionic's touch screen doesn't work properly with firefox have to use opera

    once on Firefox, I have to tap on the screen links many times until it recognizes the touch. the screen will zoom in and out only. scrolling is slow but it functions. it's the touch that doesn't work

    For one thing, AT&T does not handle any iPhone repairs or exchanges under warranty so I'm not sure why this Apple rep told you to take the iPhone to an AT&T store regarding a potential warranty claim with the iPhone.
    What is going on? Is a $500 phone so sensitive that you have to keep it on a desk top like a computer to use it?
    No it is not. I've dropped my iPhone on concrete more than once without being in a case and one time included a bounce and skid across the concrete causing scratches on the back of the case. No problems whatsoever and I've dropped it a few times since I began using a case with no resulting problems either.
    http://www.youtube.com/watch?v=czCCavcnNd8
    But damage can occur depending on how the iPhone lands just as with any other cell phone.
    Since this is a potential warranty claim, I suggest making an appointment at an Apple Store if there is one nearby or call AppleCare (800) 694-7466 and handle this over the phone.

  • ITunes doesn't start (different from others...)

    I upgraded to iTunes 6 (from 5.0.1) a while back. It worked fine for a while, then one day, it refused to start. Looking in Task Manager showed that it would start for about 2-3 seconds and then die. Installing a fresh copy would get as far as the license agreement, and then exhibit the same behavior after accepting it.
    This is where the story got interesting. I opened up iTunes on my other hard drive (which I had once used as my main drive and still had an installed copy of iTunes). It worked perfectly! Turns out it was version 4.7.
    So today, my sister got an iPod nano. We knew that iTunes might not work, so we uninstalled version 6 and installed the copy from the CD. Same deal. I uninstalled that and installed iTunes 5. Same deal.
    From what I've gathered from a few other threads, I can provide the following information:
    - QuickTime starts fine.
    - No Norton Internet Security 2005 installed.
    - Spyware and virus scans turn up clean.
    So I'm out of ideas. This is the strangest software problem I've ever encountered.

    As for security software, I have ewido (as suggested elsewhere on this forum) and ZoneAlarm.
    hmmmm. Katrina is better versed on ZoneAlarm/iTunes conflicts than i am. but we'd probably better check on it.
    probably best to disconnect from the internet before trying an experiment.
    reboot the PC. disable both ZoneAlarm's firewall and antivirus. Launch your Task Manager to the processes tab. now try another itunes launch.
    do you either get (a) an itunes launch, or (b) a changed behavior by itunes.exe in Task Manager when you try to launch itunes under those conditions? (longer persistence in Task Manager, for example)
    love, b

Maybe you are looking for

  • Testing the JDBC adapter communication channel

    Hi I've created an interface which gets the sender payload using a JDBC adapter. Basis have installed the JDBC driver for the database where the data resides I've configured the communication channel to poll every 10 minutes So far nothing appears to

  • Pictures from various event folders mistakenly merged to one event folder.

    In trying to move 15 photos to iMovie, I did a sellect all and went to move the photos.  When I realized I was dragging all 5,000+ photos, I moved the mouse back to iphoto.  This action moved all 5,000+ photos from their made event pholders into one

  • OBIEE 10.1.3.4.1 to 10.1.3.4.2

    Hi! I see that we have 10.1.3.4.2 available now. We are on Linux 32bit platform and would like to update to 10.1.3.4.2 from 10.1.3.4.1. Is there a patch available to do this or we have to reinstall it? Any pointers on rpd and catalog upgrades will he

  • Error number -1728 Applescript & some issues with spotToProcess

    I have been working on this script for weeks. Basically I would like to batch (using AS) illustrator files. (open, find spot colors, change to process, save, close). So far I'm able to open files but the part when is supposed to change them into proc

  • ITunes 11 stops working when I play certain songs.

    This seems to be a problem  with songs converted from flac to alac. Here is the error report: Description Faulting Application Path:    C:\Program Files (x86)\iTunes\iTunes.exe Problem signature Problem Event Name:    APPCRASH Application Name:    iT