Results 1 to 2 of 2

Thread: OS 13.1 - Systemd/user timer and timer service install - unable to make it works

  1. #1
    Join Date
    Jun 2008
    Location
    South-West France
    Posts
    1,015

    Default OS 13.1 - Systemd/user timer and timer service install - unable to make it works

    Hello.
    I am unable to make systemd/user timer to run.
    For clarity :
    The user name is : "some_user" (/home/some_user)

    Systemd install directory : /home/some_user/config/systemd/user


    Here what I have try :

    User profile addition ( /home/some_user/.profile ) :
    Code:
    systemctl --user
    user timer and service configuration :
    /home/some_user/config/systemd/user/user_timer.timer
    Code:
    [Unit]
    # Directory : /home/some_user/.config/systemd/user
    # file      : user_timer.timer
    Description=start every minutes : /home/some_user/bin/user_timer.service which run /home/some_user/bin/user_script_tmr
    
    [Timer]
    # Time to wait after booting before we run first time
    #OnBootSec= NOT_IN_USE
    #
    # Time between running each consecutive time
    OnUnitActiveSec=1min
    #
    Unit=user_timer.service
    
    [Install]
    #WantedBy=default.target
    WantedBy=multi-user.target
    /home/some_user/config/systemd/user/user_timer.service
    Code:
    [Unit]
    # Directory   : /home/some_user/.config/systemd/user
    # file        : user_timer.service
    # enable with : NOT IN USE
    # Started by : user_timer.timer
    Description=user_timer.service to run  /home/some_user/bin/user_script_tmr
    
    [Service]
    EnvironmentFile=/home/some_user/.config/systemd/user/user_timer.conf
    #
    Type=simple
    #
    ExecStart=/home/some_user/bin/user_script_tmr  ${TEXT}
    After enabling the timer
    Code:
    systemctl --user enable user_timer.timer
    There is a directory : "/home/some_user/config/systemd/user/multi-user.target.wants"
    with inside : a link to "user_timer.timer"

    Code:
    LINUX-TEST-123: systemctl daemon-reload
    LINUX-TEST-123: systemctl --user start  user_timer.timer
    LINUX-TEST-123: systemctl --user status  user_timer.timer
    user_timer.timer - start every minutes : /home/some_user/bin/user_script_tmr
       Loaded: loaded (/home/some_user/.config/systemd/user/user_timer.timer; enabled)
       Active: active (elapsed) since Sat 2014-09-27 11:41:30 CEST; 5s ago
    
    Sep 27 11:41:30 LINUX-TEST-123 systemd[3194]: Starting start every minutes : /home/some_user/bin/user_script_tmr.
    Sep 27 11:41:30 LINUX-TEST-123 systemd[3194]: Started start every minutes : /home/some_user/bin/user_script_tmr.
    LINUX-TEST-123:~ #
    journalctl show nothing more 1 time :

    Code:
    Sep 27 11:41:30 LINUX-TEST-123 systemd[3194]: Starting start every minutes : /home/some_user/bin/user_script_tmr.
    Sep 27 11:41:30 LINUX-TEST-123 systemd[3194]: Started start every minutes : /home/some_user/bin/user_script_tmr.
    Any help is welcome.
    Thanks for helping. JCD
    __________

    server leap 15-- ASUS g75vw KDE leap 42.3 -- ASUS g750JZ KDE leap 42.3 -- acer aspire s13 win 10 home -- HP Omen win 10 home - scan EPSON V500 - Brother HL2250DN - Samsung CLP-325W

  2. #2
    Join Date
    Jun 2008
    Location
    South-West France
    Posts
    1,015

    Default Re: OS 13.1 - Systemd/user timer and timer service install - unable to make it works

    [SOLVED]

    IN : user_timer.timer

    #OnBootSec= NOT_IN_USE

    change to

    OnBootSec=1min ( or every thing else )
    Thanks for helping. JCD
    __________

    server leap 15-- ASUS g75vw KDE leap 42.3 -- ASUS g750JZ KDE leap 42.3 -- acer aspire s13 win 10 home -- HP Omen win 10 home - scan EPSON V500 - Brother HL2250DN - Samsung CLP-325W

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •