[SOLVED]Systemd: noftify-send running but not displaying

Hello,
I'm trying to get systemd to run a command that pops a notification on screen for me to get up and move around a bit (for my health). The script works if called in the command line and seems to be running fine in systemd. No notification is being displayed, however:
script:
#!/bin/bash
notify-send "Get up and move around!" "You've been sitting in one place for too long." --icon=dialog-information
Service is called move.service. Here is output of systemctl status move.service.
● move.service - Reminds you to move.
Loaded: loaded (/etc/systemd/system/move.service; enabled)
Active: inactive (dead) since Sat 2014-11-29 09:39:07 EST; 21s ago
Process: 3797 ExecStart=/bin/bash /mnt/storage/kale/.Resources/scripts/move-around.sh (code=exited, status=0/SUCCESS)
Main PID: 3797 (code=exited, status=0/SUCCESS)
If I read this correctly, it executed as PID 3797 and finished 21 seconds ago (hence the dead state in active).
Here it is while running
● move.service - Reminds you to move.
Loaded: loaded (/etc/systemd/system/move.service; enabled)
Active: active (running) since Sat 2014-11-29 09:49:11 EST; 11ms ago
Main PID: 4062 (bash)
CGroup: /system.slice/move.service
├─4062 /bin/bash /mnt/storage/kale/.Resources/scripts/move-around....
└─4063 notify-send Get up and move around! You've been sitting in ...
Nov 29 09:49:11 Uberziet systemd[1]: Starting Reminds you to move....
Nov 29 09:49:11 Uberziet systemd[1]: Started Reminds you to move..
Thanks
Last edited by Kale Good (2014-11-29 15:48:11)

Hello
I would not use systemd to do that.
Just write a script and have it running in background when you start your graphical session:
#!/bin/bash
while true; do
notify-send "Get up and move around!" "You've been sitting in one place for too long." --icon=dialog-information
sleep 7200
done
You can also look at this thread for other less KISS ways.

Similar Messages

  • TS1587 I tried everything, except for reinstalling the SO-DIMM memory modules. Still, my iMac will not wake up. Turning it on you can hear the fan run, but the display stays dark. Any ideas what to do? Thanks Maja

    My iMac won't start up, or wake from sleep.  I've tried everything, except for reinstalling the SO-DIMM memory modules. Still, my iMac will not wake up.  Turning it on, you can hear the fan run, but the display stays dark.  Any ideas what to do?  Thanks!

    Mac doesn't boot
    Can you hear the fans and hard drive and see the white boot screen? Flashing question mark? The circle just runs and nothing happens? Only black screen and nothing else? These can be very helpful to diagnose the source of the problem. [1]
    Flashing question mark [2]: This is usually a sign of a failed hard drive. This indicates that boot up volume can not be found.
    Black screen: This is usually a sign of a failed logic board. There is no single reason for this and this may be caused by failed GPU, screen, CPU or RAM.
    Circle of death/no circle/blue screen: This is usually a sign of a hard drive failure. This may NOT be a dead hard drive, just broken permissions or something
    Gray screen/Apple logo/spinning gear or globe/prohibitory sign/folder with flashing question mark [3]: This could be a sign of faulty hardware but more likely a software issue, i.e. broken permissions, failed software update, etc.
    [edit]
    What to do
    First, hold down the option key (also known as the alt key) just after you've pressed the power button. This should show all the available options to boot from, so if you have Windows installed through Bootcamp or a disk in your SuperDrive, you should be able to see them along with your OS X drive/partition. Select the OS X partition with arrow keys and press enter. Startup key combinations
    If that doesn't help continue doing the steps from below:
    1. SMC reset [4]. Shut down and unplug all cables including power cord for at least 30 seconds and then plug in power cord and keyboard/mouse.
    2. PRAM reset [5]. Hold down option, command, P and R while booting. Start it when you hear the sound and don't let go before it reboots.
    3. Safe boot [6]. Hold down shift while booting to boot into safe mode. If this works, open Disk Utility from Utilities and repair your permissions and verify the disk
    4. Hardware test [7]. Insert the install disk (disk 1 in Mac which shipped with OS X 10.5.4 or earlier, disk 2 if shipped with OS X 10.5.5 or newer) and hold down "D" before the grey boot screen opens. Follow on screen instructions
    5. Boot from install disk. Boot from the disk that came with your Mac. Hold C while booting. Select Disk Utility from top bar and repair permissions and verify the disk. Reboot normally and see if it works now.
    6. Boot from another Mac (Firewire target disk mode). Connect the machines with a Firewire cable. Power on your Mac and press T. Select the other Mac's hard drive. Download the current OS X combo update. Run the combo update installer and select the drive that won't boot as the destination.
    7. "Repair" OS X. Boot from the install disk as in point 5. and reinstall OS X. This should NOT erase any data, just replaces the system files which may have caused your booting problem. Now install the latest combo update for OS X and repair permissions on your drive with Disk Utility.
    7.1. Install OS X into an external hard drive and then boot from it [8] and try to copy your data from the hard drive before proceeding. If you have done a backup recently, you don't have to do this.
    8. Restore OS X from Time Machine backup. Boot from the disk that came with your Mac and choose the Time Machine restore option. This step will lose any changes made since your last backup but the system and your data will be put back to exactly as it was on that date.
    8.1 Reinstall OS X. Boot from the install disk as in point 5. and select Disk Utility again. Now erase the whole hard drive and install OS X again. If you had a Time Machine backup and step 7 worked you don't have to do this.

  • After stopping FF when I restart it , I get a pop up displaying Firefox already running but not responding. Please Help?

    After stopping FF when I restart it , I get a pop up displaying Firefox already running but not responding. Please Help?

    There are several possible causes, see [[Firefox is already running but is not responding]].

  • On switching on, a message says 'Firefox is already running but not responding...........' then tells me to close it and restart but how can I close it when the page isn't yet displayed?

    When I switch on my computer I get the desktop then I try to click on Mozilla Firefox but get the message, 'Firefox is already running but not responding. To open a new window you must first close the existing Firefox process or resart your system.' I looked up how to close but I need to click on 'file' then 'exit'. How can I do that when I can't see the page yet? IE is working fine.

    See also [[Firefox is already running but is not responding]]

  • Firefox stops loading new pages, displays "Loading". When I close it it goes. But when I restart it gives me "Another version is running, but not responding. This requires a power cycle reboot.

    Version 3.6.18. Running on Windows XP Pro. (kept current)
    This happens on a variety of pages. I get the little Loading thing in the tab, with the circle moving. So I X out (to exit Firefox). When I go to restart I get the error message "Another version of FireFox is running, but not responding". I give Windows the "three finger salute", and go to Task Manager, and do not see any reference to Firefox, and the Performance, and Processes seem OK. But it never seems to close the earlier Firefox, and won't let me open a new one. Any suggestions? Super Thanks for your help!

    Hi Andis.
    First of all, this is completely normal behavior, although it's a bit irritating, I know. What happens is that when you close Firefox, despite the window disappearing right there and then, Firefox keeps running for a little bit until the whole closing procedure is completed. This can take a fraction of a second on fast computers, or can take a few seconds on slow computers or when Firefox is storing a large session (if you save your tabs). All you have to do is wait a bit until Firefox closes, and then open it again.
    To see if it's still running, you can press CTRL+SHIFT+ESC and then, under the Processes tab, you can see if firefox.exe is still there. If it's taking an unusual amount of time to close (which happens very rarely, and only if the browser freezes on exit), you can force the application to terminate from this application (task manager).
    Firefox 4.0 will reduce by 97% the time it takes firefox.exe to close, so this problem will be basically erased for Firefox's next version.
    Until then, I can recommend you this extension, which helps you restart your browser more easily and without bothering about closing times:
    https://addons.mozilla.org/en-US/firefox/addon/3559/
    Hopefully this will help.

  • FIREFOX IS RUNNING BUT NOT APPEARS

    FIREFOX IS RUNNING BUT NOT APPEARS Hello, I'm with problem after I updated Firefox to version 3.6.4 and then to 3.6.6, 3.6.8 and also installing direct either version. Is the following, simply I click on browser shortcut and it doesn't open, ja tried everything, reinstalled, spent registry cleaners, ja installed straight from the website and nothing. Versions prior to version 3.6.4, please send to my email [email protected] , [email protected] Thank you

    Versions prior to version 3.6.4, install and run normally, but the subsequent install but do not work in Task Manager, it appears as if it had opened, but the desktop is as if it were closed and does not respond. I installed the pre-alpha version 4.0.3 and happened the same thing. Please give me a light, ja I consulted on the Internet and I didn't find nothing. Already deleted the profile and created another, ja deleted the folder profiles and none of it solved. Never seen similar problem

  • "Firefox is already running but not responding" - have tried all the usual solutions.

    The message I'm getting is the standard: "Firefox is already running, but is not responding." I'm using a PC with Windows 7.
    I've tried:
    - Opening task manager and manually ending the process. This didn't work because the process is not listed in applications, processes, or services.
    - Deleting the parent/lock file. This didn't work because the file is not in any of the firefox folders. I've checked APPDATA/Local/Firefox as well as APPDATA/Roaming/Firefox, and the original install folder just to be thorough. It's not a hidden file either - I have those set to display.
    - Creating a new profile and importing settings from the old one. I can't import settings because the old profile is still running.
    - Restarting before and after each of these potential solutions, including restarting in safe mode, shutting off the computer and waiting a bit before restarting, etc.
    All I really want back are my bookmarks, which I've spent quite a while creating. Unfortunately, there is no file I can find for the default profile that has the bookmarks stored. When I created a new profile, a folder appeared with its name in the APPDATA/Roaming/Firefox folder, with all of the bookmarks, etc. There is no such folder for the default profile though - which is the one I want. I've even tried switching to Chrome and importing bookmarks, but that doesn't work because the bookmarks can't be imported while Firefox is still running.

    Does a new profile work?<br />
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    If there is no profile present then you also get that error about "Firefox is already running but not responding"
    If you uninstalled Firefox at any time in the past and removed your personal data or deleted that profile folder yourself then you no longer have a profile to start with or restore files from.
    See:
    * http://kb.mozillazine.org/Recovering_a_missing_profile
    * http://kb.mozillazine.org/Profile_in_use

  • Updateable Report/Pagination - rows found but not displayed

    Bear with me if there is a post that covers this, as the SEARCH facility seems to be hanging when I search on Pagination.
    I have a SQL Query (PL/SQL Function Body Returning SQL Query) which creates an Updatable Report.
    If I run the Query and the selection criteria results in more than one page in the "search results" and then I go to page 2 or page 3, etc and then peform another search that only results in 1 page of "search results", the actual search results will not display, but the pagination will show the number of rows that should be displaying.
    For example, I search on Coroner "John Black", which returns 55 rows. The first 50 are displayed. The next 5 are on page 2. If I then searchon Coroner "Jim Bean", 22 rows are returned (all on page 1). If I then search on "John Black" again, and this time, go to page 2 (to see the final 5 rows in the result set) and then search on "Jim Bean", I won't get any data in the report for Jim Bean, but a message showing that there are 22 rows of data. However, I cannot get that data to show (even if I select NEXT or PREVIOUS for the pages.
    Then if I go back and select on "John Black", get the same problem. I basically have to sign out completely in order to get this reset.
    Note that the problem occurs if you are on a page greater than that of the result set on the next query. For example, if I am on page 3 of 5 pages and perform another selection that has 3 pages, it is fine. But if the result set only has 2 pages, the form becomes confused.
    If the "Layout and Pagination" has a "Pagination Scheme" set to "Row Ranges X to Y of Z (no pagination)" I get an error like "Minimum row requested: 2401, rows found but not displayed: 46".
    If I use "Row ranges 1-15 16-30 (with set pagination)" I get "1-46" as a hyperlink, which if I click on, will show me the report.
    If I use "Row ranges 1-15 16-30 in select list (with pagination) I have a problem.
    If I use "Row Ranges X to Y (no pagination) I have problems.
    If I use "Row Ranges X to Y of Z (no pagination) I have problems.
    If I use "Row Ranges X to Y of Z (with pagination) I have problems.
    Basically, the one one that seems to work is those that have a hyperlink. Uing NEXT, PREVIOUS or a select list does not seem to work.
    Do you know what is causing this problem?

    I have the same issue, but cannot resolve it following above suggestions. I have a report page with search criteria and a "Go" button to submit the search. The branch back to the same page has "reset pagination for this page" checked, but still if run a query that returns just one row after having paged forwards, I get no rows displayed and a pagination link "1-1" that when clicked brings up the selected row.
    I tried adding a "Reset Pagination" process to run on submit (unconditionally), and it made no difference.
    I am using HTMLDB 2.0.

  • SAP MMC Says Dispatcher running but not connected to message server

    I installed the ABAP Stack Sneak Preview Netweaver.I see all the relevant NSP entries in my Services file.But when i disconnect my internet I see in SAP MMC that Disptacher says its running but not connected Message Server(turns yellow) and also the SAP gets logged off. Is Internet connection required for running NSP(ABAP System SID)??
    If I want to get rid of this internet dependency what settings i need to change ??
    My current Message trace file says as follows..
    Trace File of Message Server                                                                               
    trc file: "dev_ms", trc level: 1, release: "640"                                                                               
    [Thr 4516] Mon Sep 26 21:51:06 2005                                                      
    [Thr 4516] systemid   560 (PC with Windows NT)                                           
    [Thr 4516] relno      6400                                                               
    [Thr 4516] patchlevel 0                                                                  
    [Thr 4516] patchno    43                                                                 
    [Thr 4516] intno      20020600                                                           
    [Thr 4516] pid        4512                                                               
    [Thr 4516] ***LOG Q01=> MsSInit, MSStart (Msg Server 1 4512) [msxxserv.c   1661]                                                                               
    [Thr 4516] Mon Sep 26 21:51:07 2005                                                      
    [Thr 4516] MsHttpInit: full qualified hostname = sai                                     
    [Thr 4516] HTTP logging is switch off                                                    
    [Thr 4516] set HTTP state to LISTEN                                                      
    [Thr 4516] *** I listen to port sapmsNSP (3600) ***                                      
    [Thr 4516] *** HTTP port 8100 state LISTEN ***                                           
    [Thr 4516] CUSTOMER KEY: >K0201639721<                                                                               
    [Thr 4516] Mon Sep 26 21:52:46 2005                                                      
    [Thr 4516] MsHttpReadUrl: H-1 url = /sap/public/icf_info/urlprefix (403 Forbidden)                                                                               
    [Thr 4516] Mon Sep 26 21:52:50 2005                                                      
    [Thr 4516] MsHttpReadUrl: H-1 url = /sap/public/icf_info/logon_groups (403 Forbidden)                                                                               
    Looking for your valuable solutions.. Will definitely reward good points if gets solved
    Thanks
    Sreeni.

    There is now also a Weblog about https://weblogs.sdn.sap.com/pub/wlg/2479 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken].
    Regards
    Gregor

  • Spouse, Children fields from Outlook - syncing, but not displayed

    I discovered something rather curious, and am wondering if anyone has any more information about this.
    I use the Children and Spouse fields in my Outlook records. When I sync to iPhone, these fields are not shown. However, if I choose to "share a contact", it sends a vCard, which does include these fields! So the iPhone is clearly copying it over, but not displaying it? What's the point of that? I can understand a reluctance to make some fields uneditable, but storing them without displaying them?
    Also of note: the vCard does not include the Anniversary field, even though it does sync this and includes other fields in the vCard like Birthday. That looks like a bug to me. Anyone care to confirm?
    Thanks,
    Keith

    Hi,
    It depends what you require...suppose in the multiprovider you want the filed from the ODS then you should select the fiel from the ODS but if you want the filed to get the value from the navigational attribute then you should go fro the navigation attribute in the options.
    Navigation attribute will show up in the left if you have made them navigation in the cube as well.
    identification gives you an option to map the the multiprovoder fileds with the fields of the underlying infoproviders.....if you go for create recoomendations then it will chose the optimal mapping that is one to one mapping.....A to A etc...but in certain case you want A to map to B such as in sone cases shipt-to-party can take data from sold-to-party....depends upon the requirement.
    The options in the left gives you the char which will show up in the query and by selecting the char from the right from different inforproviders you actually defeine which filed from the infoproviders it should take data from.
    So just make sure that all the fields in the right which are going to show up in the query should get have the identiication from the different infoproviders and there respective char....a navigation mapped to a navigation....and a direct char to a direct char from the infoprovider.
    Hope it explains.
    Thanks

  • Program is running, but not showing in dock?

    Sometime when i open a program, for instance, QuickTime. When i close the video, the program is still running but not showing in dock. When i display open applications by pressing cmd+alt+esc it i still running?
    Here's an expample. You can see that quick time is still running, but clearly not showing in the dock. (Sorry for Danish language on screenshot)

    I have this very same problem too.  In my case, it's specific to the Preview app only. At least, that's the only app that I've noticed.
    I've done all the proper troubleshooting and maintenance stuff but it still happens. Although I don't know what negative this causes my system, I'd be interested in finding out what is going on.
    My Mac is an iMac 27" (late 2013), 3TB Fusion, 10.9.1.
    Thanks,
    Marcus

  • I can't open firefox the running but not responding window opens and says to close the existing window. I can't do that shutting down the computer doesn't do anything to help. I've done all the suggestions here. I've uninstalled and reinstalled firefox

    Firefox will not open. I get the firefox is already running but not responding window... I have tried rebooting with no help. I have tried to end the process via cntrl+shift+esc and nothing firefox is listed to end. I have tried find the app data via the run icon in the start up window, I have no run icon on this system (Acer with windows vista(?)
    == This happened ==
    Every time Firefox opened
    == The computer was hard shut down and did a improper shut down scan when it was restarted ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; FunWebProducts; GTB6.5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)

    I am having a similar problem. Running Xp.
    Latest revision of firefox.
    After using firefox for a while if I exit, parent.lock is locked and i have to reboot to reload firefox.
    I have killed all firefox applications from task manager (usually there are none). and I have tried 3 different "file unlock" programs including unlocker to no avail.
    I also recently installed a program that shows -all- open files, and parent.lock is not listed, and thus not closable/unlockable from there.

  • V6.01, Windows 7, click on icon, "firefox is already running but not responding" Task manager doesn't know about it. I can't quit it or get it to load. Brand new install. What to do?

    Brand new Lenovo computer, Windows 7 Home. New install of Firefox 6.0.1, set as default browser, don't launch when I click done. Icon appears in tray. I click the icon, and a message says "firefox is running but not responding. To open a new window, you must first close the existing process, or reboot". It's not obviously running. I can't find a way to make it quit. Task manager doesn't list it as a current application. Uninstall using the control panel uninstall function and then reinstalling gives the same message. Rebooting doesn't fix the problem and gives the same message. Firefox had been working until I tried to update my bookmarks.

    No can do. I can delete the current profile and install Firefox, which should create a new blank profile. The message still says "Firefox is already running." I can place my old profile in the proper folder, and Firefox will still be already running. I can't actually use Firefox, because even though the message says it is running, there is nothing on the screen I can access.
    After uninstalling Firefox, deleting the two items left in the Programs folder, and deleting the profile again, it still didn't work. I then got frisky and from the Roaming folder I deleted the Mozilla folder which contains the Firefox folder which contains the now empty Profiles folder. That worked, and a new set of folders with a new blank profile were created. So apparently it was the empty folders that never got deleted that were causing the issue.
    Thanks for your suggestion. It got me thinking.

  • Firefox 29.0.1 on Windows 7 (64-bit): ALWAYS get "Firefox is already running but not responding..." error and need Task Manager to close/restart Firefox.

    I run Firefox 29.0.1 on Windows 7 (64 bit) and I get the "Firefox is already running but not responding. In order to open the program you must close the existing window." error. EVERY TIME I try to start Firefox. The posted solution works to start the program, but it is not a permanent solution. I go through the Task Manager and end the old Firefox process, then I can open a new window. While working, I can open multiple tabs and multiple windows, everything seems to (usually) work the way it should. Then after I completely exit Firefox, in order to open the program again I need to fix the SAME error again. Every time. It doesn't seem to hurt anything really, but it is quite annoying.
    I used to get this same error on some of the older Firefox versions but it was only once in a while. With the new 29.0.1 it is literally EVERY TIME I TRY TO RUN FIREFOX!!!!
    So, down to the big question: is there a permanent fix for this yet? Or will there be one included in the next version update? Or am I going to have to go back to Internet Explorer? I know I am not alone in this experience; i've seen several other users posting similar questions but none of them received satisfactory answers. So what's the story here, team Firefox?

    '''https://support.mozilla.org/questions/997866?esab=a&s=&r=1&as=s'''.<BR>
    This is not a cure but will make it easier if Firefox locks up.

  • When I try to start Firefox, I get a message that it is already running but not responding and I can't run another Firefox at the same time. I uninstalled and reinstalled. No change. Tried various other suggestions. Help!!

    When I try to start Firefox, I get a message that it is already running, but not responding and that I should close it before trying to run another Firefox. But I cannot find a way to close Firefox program that is not running as far as I can see. I tried uninstalling and reinstalling Firefox, but that did not work. I've tried various other things, but no luck. I thought programs should stop when the computer is turned off, but that didn't work either.

    How are you opening the Profile Manager?
    *http://kb.mozillazine.org/Profile_Manager
    Sounds that Firefox is still or already running.<br />
    See:
    *http://kb.mozillazine.org/Kill_application

Maybe you are looking for

  • Display of values in ITS

    Hi all, 1.I have appended 3 fields in the structure INCL_EEW_PD_ACC_CSF these fields are displayed only for cost center in the account assignment category..i want to display these 3 fields for all account assignment categories such as WBS element and

  • How to manage VPN clients in SCCM 2012

    Hi, In my environment, I have multiple clients over VPN in multiple sites,  now I have problem, I how can I manage those clients for VPN, coz n CM 2012 I have to give boundary group and n boundary group  have to give the site server references, and I

  • Wont publish

    I am new to Iweb. I have made a site and bought an .mac.account. But the page wont publish. I have tried several times. any ideas?

  • How to trace JC00 instance reboot error?

    hi all, currently my JC00 instance was reboot by itself, is there anyway i can trace the error log? where is the location for the error log? thanks.

  • CUCiMOC LDAP disconnected issue

    Hi, I am doong a new deployment for a customer with CCM7.1.3-2000-2, OCSR2 client. Everything works okay, except that CUCiMOC keeps showing LDAP disconnected. I can login, use deskphone and softphone but it wont bind to LDAP. I used wireshark to trac